diff -Nru casper-1.375/debian/changelog casper-1.376/debian/changelog
--- casper-1.375/debian/changelog 2016-04-19 15:53:29.000000000 +0200
+++ casper-1.376/debian/changelog 2016-04-20 16:29:30.000000000 +0200
@@ -1,3 +1,16 @@
+casper (1.376) xenial; urgency=medium
+
+ * scripts/casper-bottom/13swap: Don't add detected swap partitions to the
+ live system's fstab, just swapon it. This avoids creating *.swap units for
+ those which automatically trigger whenever partman re-creates swap
+ partitions, as this races with partman's own swapon (while it's
+ indistinguishable from a hotplug/early boot event in systemd). By
+ disabling the fstab entries we disable that automatic start of swap
+ partitions, as a relatively unintrusive bandaid for the final release.
+ (LP: #1552539)
+
+ -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 20 Apr 2016 16:26:55 +0200
+
casper (1.375) xenial; urgency=medium
* scripts/casper-bottom/16disable_gpt_auto_mount: Disable systemd's GPT auto
diff -Nru casper-1.375/scripts/casper-bottom/13swap casper-1.376/scripts/casper-bottom/13swap
--- casper-1.375/scripts/casper-bottom/13swap 2013-04-25 12:00:34.000000000 +0200
+++ casper-1.376/scripts/casper-bottom/13swap 2016-04-20 16:26:47.000000000 +0200
@@ -2,7 +2,6 @@
PREREQ=""
DESCRIPTION="Setting up swap..."
-FSTAB=/root/etc/fstab
prereqs()
{
@@ -38,9 +37,7 @@
done
for device in $devices; do
- cat >> $FSTAB <<EOF
-$device swap swap defaults 0 0
-EOF
+ swapon $device || true
done
log_end_msg