Move configuration of casper in ubuntu-serve:live builds to a "chroot early" hook for the installer layer and remove the now unnecessary update-initramfs from the binary hook that breaks because mkinitramfs now requires that /sys is mounted. (LP: #2097280)

This commit is contained in:
Michael Hudson-Doyle 2025-02-05 11:17:11 +13:00
parent bdd7d035e2
commit 8d7efb4d15
4 changed files with 21 additions and 7 deletions

4
debian/changelog vendored
View File

@ -1,6 +1,10 @@
livecd-rootfs (25.04.12) UNRELEASED; urgency=medium
* Stop producing a rootfs tarball for the ubuntu-mini-iso builds.
* Move configuration of casper in ubuntu-serve:live builds to a "chroot
early" hook for the installer layer and remove the now unnecessary
update-initramfs from the binary hook that breaks because mkinitramfs
now requires that /sys is mounted. (LP: #2097280)
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Wed, 05 Feb 2025 11:20:05 +1300

View File

@ -0,0 +1,17 @@
#!/bin/bash -ex
# vi: ts=4 noexpandtab
case $PASS in
ubuntu-server-minimal.ubuntu-server.installer.*)
exit 0
;;
ubuntu-server-minimal.ubuntu-server.installer)
;;
*)
exit 0
;;
esac
cat <<EOF > /etc/initramfs-tools/conf.d/casperize.conf
export CASPER_GENERATE_UUID=1
EOF

View File

@ -12,10 +12,6 @@ case $PASS in
;;
esac
cat <<EOF > /etc/initramfs-tools/conf.d/casperize.conf
export CASPER_GENERATE_UUID=1
EOF
cat <<EOF > /etc/initramfs-tools/conf.d/default-layer.conf
LAYERFS_PATH=${PASS}.squashfs
EOF

View File

@ -15,9 +15,6 @@ esac
PROJECT=$PROJECT${SUBARCH:+-$SUBARCH}
# ensure this initrd is casperized
chroot chroot update-initramfs -u
# Fish out generated kernel image and initrd
mv chroot/boot/initrd.img-* ${PWD}/livecd.${PROJECT}.initrd-$flavor
mv chroot/boot/vmlinu?-* ${PWD}/livecd.${PROJECT}.kernel-$flavor