Updating swapon handling to new parameter handling.
authorDaniel Baumann <daniel@debian.org>
Tue, 5 Jun 2012 16:32:19 +0000 (18:32 +0200)
committerDaniel Baumann <daniel@debian.org>
Tue, 5 Jun 2012 17:35:56 +0000 (19:35 +0200)
initramfs-tools/scripts/live-bottom/12fstab
scripts/boot/cmdline.sh

index e0b248a..d71800d 100755 (executable)
@@ -44,7 +44,7 @@ then
        echo "tmpfs /tmp tmpfs nosuid,nodev 0 0" >> "${FSTAB}"
 fi
 
-if [ -n "${SWAPON}" ]
+if [ -n "${LIVE_SWAPON}" ]
 then
        devices=""
 
index 18a9a2c..fb4e0cb 100755 (executable)
@@ -12,6 +12,11 @@ Cmdline ()
                                export LIVE_READ_ONLY
                                ;;
 
+                       live-boot.swapon)
+                               LIVE_SWAPON="true"
+                               export LIVE_SWAPON
+                               ;;
+
                        live-boot.verify-checksums|verify-checksums)
                                LIVE_VERIFY_CHECKSUMS="true"
                                export LIVE_VERIFY_CHECKSUMS
@@ -177,11 +182,6 @@ Cmdline ()
                                ramdisk_size="${ARGUMENT#ramdisk-size=}"
                                ;;
 
-                       swapon)
-                               SWAPON="true"
-                               export SWAPON
-                               ;;
-
                        persistence)
                                PERSISTENCE="true"
                                export PERSISTENCE