Fix ubuntu-server-live images to generate initrd with casper UUID. Whilst configs are sources, the variables are not exported into the environment by default. Thus when casper hook is executed, it had no idea that it should generate UUID.

This commit is contained in:
Dimitri John Ledkov 2019-04-25 17:07:02 +01:00
parent d5c0bd170b
commit d13964805e
No known key found for this signature in database
GPG Key ID: E8E84908F903AFB5
2 changed files with 10 additions and 1 deletions

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
livecd-rootfs (2.579) UNRELEASED; urgency=medium
* Fix ubuntu-server-live images to generate initrd with casper
UUID. Whilst configs are sources, the variables are not exported into
the environment by default. Thus when casper hook is executed, it had
no idea that it should generate UUID.
-- Dimitri John Ledkov <xnox@ubuntu.com> Thu, 25 Apr 2019 15:22:22 +0100
livecd-rootfs (2.578) disco; urgency=medium
* Fix the sed script that Tobias had right in the first place and I

View File

@ -56,7 +56,7 @@ for variant in $variants; do
if [ -n "$LB_INITRAMFS_COMPRESSION" ]; then
echo "COMPRESS=$LB_INITRAMFS_COMPRESSION" > "$KERNEL_BITS_ROOT"/etc/initramfs-tools/conf.d/livecd-rootfs.conf
fi
echo "CASPER_GENERATE_UUID=1" > "$KERNEL_BITS_ROOT"/etc/initramfs-tools/conf.d/casper.conf
echo "export CASPER_GENERATE_UUID=1" > "$KERNEL_BITS_ROOT"/etc/initramfs-tools/conf.d/casper.conf
# Add a hook to record which kernel was booted and mount the
# modules.squashfs created below.