diff --git a/debian/changelog b/debian/changelog index 8268c1fc..0f859701 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,9 @@ livecd-rootfs (2.896) UNRELEASED; urgency=medium * live-build/ubuntu/hooks/033-disk-image-uefi.binary: update to point at ubuntu-cpc/hooks.d/base/disk-image-uefi-non-cloud.binary, fixing canary build. + * Disable the orphan_file ext4 feature in the canary live environment so + that the installed system can be handled by the e2fsck in the extant + kernel snap (cf. bug 2025339). -- Michael Hudson-Doyle Wed, 05 Jul 2023 10:12:21 +1200 diff --git a/live-build/ubuntu/hooks/020-canary-live.chroot_early b/live-build/ubuntu/hooks/020-canary-live.chroot_early index 4fb89b37..76846f3b 100755 --- a/live-build/ubuntu/hooks/020-canary-live.chroot_early +++ b/live-build/ubuntu/hooks/020-canary-live.chroot_early @@ -10,7 +10,14 @@ case ${PASS:-} in ;; esac -# TODO: Make sure this is only executed for canary builds +# TODO: Make sure this is only executed for canary builds (in a way +# other then relying on the fact that these hooks are only copied for +# an ubuntu:canary build) + +# As described in LP: #2025339, an initrd built from a jammy userspace +# (which is what we use for canary builds currently) cannot fsck a +# mantic root filesystem created with the default options. +sed -i -e 's/,orphan_file//' /etc/mke2fs.conf cat < /etc/initramfs-tools/conf.d/casperize.conf export CASPER_GENERATE_UUID=1