3140 Commits

Author SHA1 Message Date
Ivan Kapelyukhin
d5b6e93e14
perf(cpc): split disk-image-uefi out of disk-image series file
Due to how `disk-image` file is structured, it builds BIOS and UEFI
images at the same time. However, certain images (e.g., GCE images)
require only UEFI image to be built, BIOS image is being simply
discarded. This results in longer build times.

Splitting out `disk-image-uefi` would allow images to use it instead of
`disk-image` and thus avoid building unused BIOS images.

`disk-image` now depends on `disk-image-uefi` for backward
compatibility.

(cherry picked from commit b40ce74fd67bbaa7f9ec94463d8da759724f9fec)
2022-03-03 15:52:48 +01:00
Utkarsh Gupta
7bb7005712 Update d/ch for 2.742.4 release 2.742.4 2022-02-23 14:08:26 +05:30
Ivan Kapelyukhin
bccc9437a0
Update changelog 2022-02-14 21:26:40 +01:00
Ivan Kapelyukhin
e7d06dede2
fix: unset initrdless_boot_fallback_triggered instead of setting it to 0
This fixes GCE shielded VM instances integrity monitoring failures on
focal and later. Our images are built with an empty /boot/grub/grubenv
file, however after the first boot `initrdless_boot_fallback_triggered`
is set to 0. This change in `grubenv` results in integrity monitoring
`lateBootReportEvent` error.

It seems that the only thing that's checking for this `grubenv` variable
is `grub-common.service`, and it is looking specifically for a `1`
value:

  if grub-editenv /boot/grub/grubenv list | grep -q
  initrdless_boot_fallback_triggered=1; then echo "grub:
  GRUB_FORCE_PARTUUID set, initrdless boot paniced, fallback triggered.";
  fi

Unsetting this variable instead of setting it to 0 would prevent issues
with integrity monitoring.
2022-02-14 21:21:51 +01:00
Brian Murray
28c85b9703 releasing package livecd-rootfs version 2.742.3 2022-02-10 15:28:46 -08:00
John Chittum
a093a293aa Add sleep to workaround e2fsck errors
LP: 1960537 illustrates an issue where the calls to e2fsck in the
umount_partition call are failing due to an open file handle. At this
time, we are unable to find a root cause, and it's causing many builds
to fail for CPC. Adding a sleep 30 as a workaround as the file handle
releases within  that timeframe. This does not address root cause.
2022-02-10 15:27:57 -08:00
Philip Roche
bfeba29863 Bump UEFI disk image size for armhf to 3.5 GB LP:#1953609
Current impish builds fail with:
```
cp: error writing 'mountpoint/var/lib/snapd/snaps/snapd_14067.snap': No space left on device
cp: cannot create directory 'mountpoint/var/lib/snapd/ssl': No space left on device
```

This is a cherrypick backport from ubuntu/master
2.742.2
2021-12-08 12:01:01 +00:00
Brian Murray
c42513a609 releasing package livecd-rootfs version 2.742.1 2021-11-18 15:17:19 -08:00
Thomas Bechtold
36cd65e112 Add debian/changelog entry 2021-10-26 16:33:52 +02:00
Thomas Bechtold
408045732e magic-proxy: fix exception handling for URLError LP:#1946520
A urllib.error.URLError.reason variable can either be a string or
another Exception[0]. In case it's another exception, the current code
fails because the exception is passed into send_error() which tries
call html.escape() on the Exception. That fails because the Exception
is not a string. Converting the Exception to a string fixes this.

This fixes:

AttributeError: 'TimeoutError' object has no attribute 'replace'

[0]
https://docs.python.org/3/library/urllib.error.html#urllib.error.URLError.reason

(cherry picked from commit af888e24ff8ec478b490c6d0fc39131cd63a8079)
2021-10-26 16:32:13 +02:00
Steve Langasek
5339f1691b releasing package livecd-rootfs version 2.742 2.742 2021-10-05 13:11:36 -07:00
Steve Langasek
7d6d42a74d Changelog entry 2021-10-05 13:11:31 -07:00
Sebastien Bacher
808220c868 Enable universe sources on the desktop canary 2021-10-05 17:16:22 +02:00
Brian Murray
85fb768f4f Properly check ARCH when setting the intel-iot model. 2021-09-29 16:34:51 -07:00
Steve Langasek
58259c7d23 releasing package livecd-rootfs version 2.741 2.741 2021-09-29 11:25:46 -07:00
John Chittum
fb41e53a84
Open new release
Add entry to open new release
2021-09-28 16:10:19 -05:00
John Chittum
9c3851d401
Mount cgroup2 type for snapd
LP: 1944004 described an issue where a libc transition caused snapd
seccomp profiles to reference a path that no longer existed, leading to
permission denied errors. The committed fix for snapd then raised an
issue where running `snapd debug seeding` would present a
preseed-system-key and seed-restart-system-key due to a mismatch
between the running kernel capabilities and the profiles being loaded by
snapd. By mounting a cgroup2 type to /sys/fs/cgroup, the capabilities
match for snapd as mounted in the chroot. This is done similarly to
live-build/functions:138-140 where apparmour and seccomp actions are
mounted after updating the buildd.
2021-09-28 16:08:55 -05:00
Steve Langasek
271d498ab6 releasing package livecd-rootfs version 2.740 2.740 2021-09-27 08:38:03 -07:00
Steve Langasek
66c8929f07 changelog 2021-09-27 08:37:55 -07:00
Steve Langasek
f7e125aa1c Merge remote-tracking branch 'toabctl/fix-magic-proxy-with-repo-stamp' into ubuntu/master 2021-09-27 08:34:36 -07:00
Michael Hudson-Doyle
ae45e9356f releasing package livecd-rootfs version 2.739 2.739 2021-09-27 11:10:54 +13:00
Michael Hudson-Doyle
f5bdeaf4fb Merge branch 'language-support-in-catalogs' into ubuntu/master 2021-09-27 11:09:39 +13:00
Michael Hudson-Doyle
391439d44c Record information about locale support (in particular, whether to install langpacks and which languages have pre-baked squashfses). 2021-09-27 11:06:01 +13:00
Michael Hudson-Doyle
0a48a1c7ae add changelog entry 2021-09-27 09:40:30 +13:00
Dan Bungert
a96d56a110 desktop: install-sources.yaml type fsimage-layered 2021-09-24 15:25:40 -06:00
Thomas Bechtold
3559153c7d magic-proxy: fix TypeError when trying to call get_uri() LP:#1944906
Currently the uri that is passed into urllib.parse.urlparse() is not
prefixed with "http(s)://" which leads urlparse() to return a wrong
scheme/netloc/path. Currently it looks like:

ParseResult(scheme='', netloc='',
  path='de.archive.ubuntu.com/ubuntu/dists/impish-backports/InRelease'
 , params='', query='', fragment='')

That's wrong. The path should look like
'ubuntu/dists/impish-backports/InRelease'.
Prefixing the 'host' header with 'http://' in case it's not there does
fix the problem.

This fixes:

Traceback (most recent call last):
  File "/usr/lib/python3.9/socketserver.py", line 683, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python3.9/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.9/socketserver.py", line 747, in __init__
    self.handle()
  File "/usr/lib/python3.9/http/server.py", line 427, in handle
    self.handle_one_request()
  File "/usr/lib/python3.9/http/server.py", line 415, in handle_one_request
    method()
  File "/home/tom/devel/livecd-rootfs/./magic-proxy", line 787, in do_GET
  File "/home/tom/devel/livecd-rootfs/./magic-proxy", line 838, in __get_request
  File "/home/tom/devel/livecd-rootfs/./magic-proxy", line 84, in get_uri
TypeError: can only concatenate str (not "NoneType") to str
2021-09-24 10:26:49 +02:00
Steve Langasek
1977636e28 ugh fix version number 2.738 2021-09-20 09:42:15 -07:00
Steve Langasek
d488d07c74 releasing package livecd-rootfs version 2.737ubuntu1 2.737ubuntu1 2021-09-20 09:40:30 -07:00
Steve Langasek
e81f333aec changelog entry 2021-09-20 09:40:23 -07:00
Steve Langasek
9e6b983728 Merge remote-tracking branch 'toabctl/keep-debian-native-package-changelogs' into ubuntu/master 2021-09-20 09:39:17 -07:00
Thomas Bechtold
2b2f67c7fb Keep changelogs in minimized builds for native deb pkgs
Debian changelog.Debian.* files are already keept for minimized
builds. But those changelogs are from non-native .deb packages (see
man dh_installchangelogs). Native .deb packages name their changelog
just changelog.* . So keep them in a minimized build, too.

LP: #1943114
2021-09-20 13:43:27 +02:00
Michael Hudson-Doyle
e19d501949 releasing package livecd-rootfs version 2.737 2.737 2021-09-14 21:39:55 +12:00
Michael Hudson-Doyle
1b87b238ea Check for duplicate ids in update-source-catalog. 2021-09-14 21:29:26 +12:00
Michael Hudson-Doyle
8f8fc220c7 Generate source catalogs for the desktop canary build. 2021-09-14 21:28:50 +12:00
Michael Hudson-Doyle
23f307754c releasing package livecd-rootfs version 2.736 2.736 2021-08-30 15:30:59 +12:00
Michael Hudson-Doyle
fe38bd02c1 Change the per language layers in the desktop canary build to have more regular names (and make their implementation better documented and hopefully more comprehensible). 2021-08-27 11:52:08 +12:00
Michael Hudson-Doyle
356b08c475 releasing package livecd-rootfs version 2.735 2.735 2021-08-23 15:42:48 +12:00
Michael Hudson-Doyle
8106244b42 add a little debugging output 2021-08-20 14:14:35 +12:00
Michael Hudson-Doyle
17279822d5 Get source catalog translations from subiquity git, as brz is in universe. 2021-08-20 10:32:13 +12:00
Michael Hudson-Doyle
c78f283d9f releasing package livecd-rootfs version 2.734 2.734 2021-08-19 16:50:02 +12:00
Michael Hudson-Doyle
543c40b347 Merge branch 'source-catalog-2' into ubuntu/master 2021-08-18 11:10:01 +12:00
Michael Hudson-Doyle
021c8e063c better minimal ubuntu server description 2021-08-18 08:15:14 +12:00
Łukasz 'sil2100' Zemczak
3032953f44 Changelog entry. 2021-08-17 12:04:49 +02:00
Łukasz 'sil2100' Zemczak
2dc48a1687 Make the UBUNTU_STORE_ARCH adjustment more fool-proof 2021-08-17 12:02:39 +02:00
Łukasz 'sil2100' Zemczak
744585ed9a Merge branch 'ubuntu/master' of git+ssh://git.launchpad.net/~ethan.hsieh/livecd-rootfs/+git/livecd-rootfs into ubuntu/master 2021-08-17 11:58:39 +02:00
Michael Hudson-Doyle
cda8c920dd create source catalogs for live server install sources 2021-08-17 16:07:07 +12:00
Michael Hudson-Doyle
fb8c694530 add script to fill out a template install source description 2021-08-17 16:05:41 +12:00
Michael Hudson-Doyle
10288220fc add a script to checkout a translations branch
and compile the po files into mo files
2021-08-17 16:05:41 +12:00
Brian Murray
d0e0454547 releasing package livecd-rootfs version 2.733 2021-08-16 12:23:40 -07:00
Brian Murray
0a54de462d fix the changelog entry 2021-08-16 12:22:23 -07:00