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.
sil2100/backport-datasource-raspi3
Dimitri John Ledkov 6 years ago
parent f8ebe8e98e
commit 0e50a351a6

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

Loading…
Cancel
Save