Import patches-unapplied version 2.513 to ubuntu/bionic-proposed

Imported using git-ubuntu import.

Changelog parent: 2be32c140c18f9592ef85f3afa4d740587ceccbb

New changelog entries:
  * In the live-server build, prevent casper from mounting any existing
    swap partitions from drives we might later be installing to.
    (LP: #1743643)
This commit is contained in:
Michael Hudson-Doyle 2018-03-21 15:58:02 +13:00 committed by usd-importer
parent 2be32c140c
commit d7e1e72398
2 changed files with 12 additions and 0 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
livecd-rootfs (2.513) bionic; 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:58:02 +1300
livecd-rootfs (2.512) bionic; urgency=medium
* ubuntu-cpc: When performing a minimized build, don't generate artifacts

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