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

partitions from drives we might later be installing to.
This commit is contained in:
Michael Hudson-Doyle 2018-03-15 20:26:00 +13:00
parent 44e7d70046
commit 8ece245153
2 changed files with 11 additions and 0 deletions

7
debian/changelog vendored
View File

@ -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

View File

@ -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