In the live-server build, prevent casper from mounting any existing swap

partitions from drives we might later be installing to.
ubuntu/cosmic
Michael Hudson-Doyle 7 years ago
parent 44e7d70046
commit 8ece245153

7
debian/changelog vendored

@ -1,3 +1,10 @@
livecd-rootfs (2.511) UNRELEASED; urgency=medium
* In the live-server build, prevent casper from mounting any existing swap
partitions from drives we might later be installing to.
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Thu, 15 Mar 2018 20:23:27 +1300
livecd-rootfs (2.510) bionic; urgency=medium
* Rename the directory containing the systemd override file for subiquity to

@ -53,6 +53,10 @@ EOF
chroot $SQUASH_ROOT apt-get update
chroot $SQUASH_ROOT apt-get -y install user-setup curtin lupin-casper
# For bug #1743643 "Install to dirty disk with swap fails" remove the
# "helpful" casper script that mounts any swap partitions it finds.
rm -f $SQUASH_ROOT/usr/share/initramfs-tools/scripts/casper-bottom/*swap
# Installing casper means we need a new initramfs
UPDATE_INITRAMFS_OPTIONS=CASPER_GENERATE_UUID=1 recreate_initramfs $SQUASH_ROOT

Loading…
Cancel
Save