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

swap partitions from drives we might later be installing to.
(LP: #1743643)
ubuntu/cosmic
Michael Hudson-Doyle 7 years ago
commit 8ee1f566e2

8
debian/changelog vendored

@ -1,3 +1,11 @@
livecd-rootfs (2.513) UNRELEASED; urgency=medium
* In the live-server build, prevent casper from mounting any existing
swap partitions from drives we might later be installing to.
(LP: #1743643)
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Wed, 21 Mar 2018 15:50:27 +1300
livecd-rootfs (2.512) bionic; urgency=medium
* ubuntu-cpc: When performing a minimized build, don't generate artifacts

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