1640 Commits

Author SHA1 Message Date
Łukasz 'sil2100' Zemczak
e4c846199b Following Dave's changes to the classic pi gadget, switch to using the classic branch for desktop images as well. 2022-02-22 11:33:26 +01:00
Ivan Kapelyukhin
50e32d93c0
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 13:10:04 +01:00
John Chittum
ce5dd6f411 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 13:53:23 -08:00
Brian Murray
16c1851a90 Add the casper package instead of the lupin-casper package as the installer for Windows is a project that is no longer supported and lupin is being removed the archive in LP: 1960457. 2022-02-10 11:42:59 -08:00
Thomas Bechtold
14a628e3c8 Disable APT periodic update for OCI/docker images
When cron-like services are installed in the OCI/docker image, APT
should not do periodic updates by default. LP: #1810451
2022-02-04 11:44:05 +01:00
Michael Hudson-Doyle
b2094f0319 Disable compression and "hash table hardening" for journald in the live installer environment as these features make the journal unreadable using the systemd libraries from 20.04 that are included in the subiquity snap. 2022-02-02 13:51:20 +13:00
Steve Langasek
5474af17df Remove references to archive.canonical.com, which is no longer used and should not be included in the default sources.list. 2022-01-27 14:32:09 -08:00
William Wilson
2312c08d26 Revert change for local builds as it is breaking autopkgtests 2022-01-12 18:19:57 -06:00
Steve Langasek
245f7772bd Treat it as a fatal error if we are asked to install a snap that would pull in the core snap. Ubuntu 20.04 and Ubuntu 22.04 official images should never require snaps that depend on an Ubuntu 16.04 runtime, this indicates a misconfiguration that will bloat the install. 2022-01-11 16:32:51 -08:00
Steve Langasek
bcfad43fd4 We don't pipe grep to awk in this house, young man 2022-01-11 16:29:32 -08:00
Steve Langasek
0b4811f7a9 Do not look for a base snap on snaps of type base, because recursive dependencies are not allowed for snaps. LP: #1957123. 2022-01-11 16:26:57 -08:00
Łukasz 'sil2100' Zemczak
6df425bb34 Merge branch 'umount' of https://git.launchpad.net/~xypron/livecd-rootfs into ubuntu/master 2021-12-16 12:40:11 +01:00
Łukasz 'sil2100' Zemczak
32b54e6242 Merge branch 'partalign' of https://git.launchpad.net/~xypron/livecd-rootfs into ubuntu/master 2021-12-16 12:25:05 +01:00
Brian Murray
fe662c5c8a Merge remote-tracking branch 'jessica-youjeong/111721-ubuntu-master-ova' into ubuntu/master 2021-12-15 10:06:54 -08:00
Heinrich Schuchardt
b6701e556f riscv64: ensure reasonable partition alignment
Currently the RISC-V preinstalled server images come with partitions that
are only 1 KiB aligned. Ext4 may use 4 KiB block size. The existing
misalignment leads to decreased performance.

Decrease the size of the loader2 partition by 34 512-byte blocks. This
results in 1 MiB alignment of the EFI and root partitions.

The remaining loader2 partition size of close to 4 MiB is still large
enough for U-Boot or a future EDK II.

Fixes: a808b28d47ec ("riscv64: build preinstalled riscv64 image with uboot SPL and CIDATA.")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2021-12-01 18:22:02 +01:00
Heinrich Schuchardt
d65af891f3 functions: fix unmounting for local builds
livecd-rootfs creates non-private mounts. When building locally using
the auto/build script unmounting fails.

To unmount dev/pts it is insufficient to make the mount private. Its
parents must be private too. Change teardown_mountpoint() accordingly.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2021-12-01 18:11:57 +01:00
Thomas Bechtold
1a7e9ca8c9 Bump UEFI disk image size for armhf to 3.5 GB
Current jammy builds fail with:
dpkg: error processing archive /var/cache/\
  apt/archives/grub-common_2.04-1ubuntu48_armhf.deb (--unpack):
cannot copy extracted data for './usr/share/grub/unicode.pf2' \
  to '/usr/share/grub/unicode.pf2.dpkg-new': \
  failed to write (No space left on device)
2021-11-23 11:30:47 +01:00
Jess Jang
a97e98c968 Change serial0 allocation as false (LP:#1895104)
It hangs during booting when upgrading hardware
version ESXi after deploying image in groovy.
(Current default version is 10)
It could be resolved by adding serial port in VM
when vm version is larger than 10.

Seriaol port1 has been configured as default so
we need to change setting serial0 as false.
2021-11-17 07:50:19 -06:00
Brian Murray
e5beee30fd Add the capability to build an ISO image for the Intel IoT project. Additionally, stop using universe with the project given that the kernel is now in main. 2021-11-16 17:00:38 -08:00
Erich Eickmeyer
04c4a14a4e Remove fonts and publishing tasks form ubuntustudio 2021-11-08 12:23:04 -08:00
Didier Roche
6a05e7fa22 Install desired already seeded snap in wsl.
As wsl is an image target of ubuntu-cpc, the base seed is hardcoded to
ubuntu-server instead of wsl one. For now, add it, as for the other
cpc images, in hooks.
2021-11-05 17:51:52 +01: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
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
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
Dan Bungert
a96d56a110 desktop: install-sources.yaml type fsimage-layered 2021-09-24 15:25:40 -06: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
8f8fc220c7 Generate source catalogs for the desktop canary build. 2021-09-14 21:28:50 +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
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
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
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
Brian Murray
44384357ad add missing for intel-iot 2021-08-04 08:51:01 -07:00
Michael Hudson-Doyle
116a51a080 bootstrap the minimal variant for the minimal server layer 2021-08-03 16:36:02 +12:00
Michael Hudson-Doyle
b341c81ff3 do the mounting in an initrd script rather than systemd units 2021-08-03 16:36:02 +12:00
Michael Hudson-Doyle
5fda0bb2aa apply dpkg minimizations to minimal layer, and undo them for full layer 2021-08-03 16:36:02 +12:00
Michael Hudson-Doyle
5232f2f8cc fix /media/filesystem mount 2021-08-03 16:36:02 +12:00
Michael Hudson-Doyle
d11c71a686 add a minimal server layer under the full server layer 2021-08-03 16:36:00 +12:00
Łukasz 'sil2100' Zemczak
09cbdfa7e9 Revert /dev sharing improvements. 2021-08-02 22:11:41 +02:00
Michael Hudson-Doyle
75fe0241f3 lb_chroot_layered: fix quoting when searching for trusted.overlay.opaque 2021-07-30 11:56:07 +12:00
Łukasz 'sil2100' Zemczak
d198821c07 Fix sharing of the /dev tree to make sure we can safely umount the chroot when needed. This fixes local non-livefs-builder image builds. 2021-07-28 21:54:34 +02:00
Sebastien Bacher
5ba545f2b6 Tweaks to the canary packages
Install cloud-init on the live and target, remove ubiquity
2021-07-27 10:49:03 +02:00
Sebastien Bacher
cdbb5598ad Remove lupin-casper from the canary image
The description states it was for wubi which we aren't using anymore
2021-07-27 10:48:48 +02:00
Michael Hudson-Doyle
5e21dd89f6 Merge branch 'hyperv-manifest' into ubuntu/master 2021-07-27 09:27:41 +12:00