Adding persistent-encryption={none|luks}.
authorTails developers <amnesia@boum.org>
Tue, 8 Nov 2011 14:40:17 +0000 (15:40 +0100)
committerDaniel Baumann <daniel@debian.org>
Thu, 24 Nov 2011 08:42:07 +0000 (09:42 +0100)
This is the way to control whether to use encrypted persistent media,
instead of the (from this commit on) obsolete persistent=cryptsetup.

scripts/live
scripts/live-helpers

index 6080841..bd7d9c4 100755 (executable)
@@ -253,6 +253,11 @@ Arguments ()
                                export PERSISTENT
                                ;;
 
+                       persistent-encryption=*)
+                               PERSISTENT_ENCRYPTION="${ARGUMENT#*=}"
+                               export PERSISTENT_ENCRYPTION
+                               ;;
+
                        persistent-media=*)
                                PERSISTENT_MEDIA="${ARGUMENT#*=}"
                                export PERSISTENT_MEDIA
index 73d9f9d..950bbda 100644 (file)
@@ -328,7 +328,7 @@ find_cow_device ()
                        fi
 
                        # Checking for a luks device
-                       if [ "${PERSISTENT}" = "cryptsetup" ] && [ -e /sbin/cryptsetup ] && /sbin/cryptsetup isLuks ${devname}
+                       if [ "${PERSISTENT_ENCRYPTION}" = "luks" ] && [ -e /sbin/cryptsetup ] && /sbin/cryptsetup isLuks ${devname}
                        then
                                while true
                                do