~rcj/livecd-rootfs/+git/livecd-rootfs:bugfix/snapchannels

Last commit made on 2020-07-29
Get this branch:
git clone -b bugfix/snapchannels https://git.launchpad.net/~rcj/livecd-rootfs/+git/livecd-rootfs
Only Robert C Jennings can upload to this branch. If you are Robert C Jennings please log in for upload directions.

Branch merges

Branch information

Name:
bugfix/snapchannels
Repository:
lp:~rcj/livecd-rootfs/+git/livecd-rootfs

Recent commits

e3dce0a... by Robert C Jennings

Handle seeded lxd snap with channel name for ubuntu-cpc:minimized

The seed now specifies the lxd snap in focal as
'lxd=4.0/stable/ubuntu-20.04' which doesn't match the expectations of
the code with looks for lxd as the only snap in the seed for minimized
images. This patch updates the pattern to accept 'lxd' or 'lxd=*'.

c69c79e... by Dimitri John Ledkov

releasing package livecd-rootfs version 2.678

4d4f113... by Dimitri John Ledkov

functions: provide nss_systemd-less nsswitch.conf in chroots.

109e6c6... by Dimitri John Ledkov

auto/build: use setup|teardown_mountpoint to reduce duplication

9c52eae... by Robert C Jennings

Merge feature/initrdless-detection into ubuntu/master [a=davidkrauser] [r=rcj]

MP: https://code.launchpad.net/~davidkrauser/livecd-rootfs/+git/livecd-rootfs/+merge/387862

83499f1... by David Krauser

Add mechanism to detect initrdless boot fallback

In v2.672 the default boot behavior of cloud images changed:

- Prior to v2.672, cloud images with the linux-generic kernel attempt
  to boot without an initramfs, would fail, and then retry with an
  initramfs.

- After v2.672, cloud images with the linux-generic kernel boot with
  an initramfs on the first try.

While the behavior is different between the two, they both result in
an instance that has booted with an initramfs. To ensure the changes
in v2.672 do not regress, we need an automated way to check if we are
attempting to boot without an initramfs and failing.

With this change, when we attempt to boot with an initramfs and fail,
initrdless_boot_fallback_triggered is set to non-zero in the grubenv.
This value can be checked after boot by looking in /boot/grub/grubenv
or by using the grub-editenv list command.

2edabc3... by Robert C Jennings

releasing package livecd-rootfs version 2.677

  * Avoid rbind /sys for chroot snap pre-seeding (cgroups fail to unmount)

84397b5... by Robert C Jennings

Avoid rbind /sys for chroot snap pre-seeding (cgroups fail to unmount)

Builds in LP with the Xenial kernel were happy with the recursive mount of
/sys inside the chroot while performing snap-preseeding but autopkgtests
with the groovy kernel failed. With the groovy kernel the build was
unable to unmount sys/kernel/slab/*/cgroup/* (Operation not permitted).

This patch mounts /sys and /sys/kernel/security in the chroot in the
same way we've added for binary hooks. This provides the paths under
/sys needed for snap-preseed while avoiding issues unmounting other
paths.

b22d7dc... by Dimitri John Ledkov

releasing package livecd-rootfs version 2.676

b14f79c... by Dimitri John Ledkov

apparmor: compile all profiles