From 6ddf832b20eec1ba6107208f87317f51aafe7368 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 13 Dec 2017 10:07:14 +1300 Subject: [PATCH] slimy hack to get a casper-ized initrd in place --- debian/changelog | 2 +- live-build/ubuntu-server/hooks/032-installer-squashfs.binary | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 6314a75e..4776a030 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -livecd-rootfs (2.488~ppa1) bionic; urgency=medium +livecd-rootfs (2.488~ppa2) bionic; urgency=medium * Move casper from filesystem.squashfs to installer.squashfs. diff --git a/live-build/ubuntu-server/hooks/032-installer-squashfs.binary b/live-build/ubuntu-server/hooks/032-installer-squashfs.binary index 83df629e..bbf8f09c 100755 --- a/live-build/ubuntu-server/hooks/032-installer-squashfs.binary +++ b/live-build/ubuntu-server/hooks/032-installer-squashfs.binary @@ -40,8 +40,12 @@ setup_mountpoint binary/boot/squashfs.dir chroot $SQUASH_ROOT apt-get update chroot $SQUASH_ROOT apt-get -y install user-setup chroot $SQUASH_ROOT apt-get -y install lupin-casper + +mv $SQUASH_ROOT/boot/initrd.img-* livecd.ubuntu-server.initrd-generic + chroot $SQUASH_ROOT apt-get -y install curtin + # Don't let cloud-init run in the live session. touch $SQUASH_ROOT/etc/cloud/cloud-init.disabled