summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2011-11-08 15:40:17 +0100
committerDaniel Baumann <daniel@debian.org>2011-11-24 09:42:07 +0100
commit8860c59f82e44e0d1752042fcaf11c69bd4677e3 (patch)
treeda970003da1e557f16c352db92b6aa181136ce86 /scripts
parentb532cab8c4c56226854c70553902a6e295d68650 (diff)
downloadlive-boot-8860c59f82e44e0d1752042fcaf11c69bd4677e3.tar.gz
live-boot-8860c59f82e44e0d1752042fcaf11c69bd4677e3.zip
Adding persistent-encryption={none|luks}.
This is the way to control whether to use encrypted persistent media, instead of the (from this commit on) obsolete persistent=cryptsetup.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live5
-rw-r--r--scripts/live-helpers2
2 files changed, 6 insertions, 1 deletions
diff --git a/scripts/live b/scripts/live
index 6080841..bd7d9c4 100755
--- a/scripts/live
+++ b/scripts/live
@@ -253,6 +253,11 @@ Arguments ()
export PERSISTENT
;;
+ persistent-encryption=*)
+ PERSISTENT_ENCRYPTION="${ARGUMENT#*=}"
+ export PERSISTENT_ENCRYPTION
+ ;;
+
persistent-media=*)
PERSISTENT_MEDIA="${ARGUMENT#*=}"
export PERSISTENT_MEDIA
diff --git a/scripts/live-helpers b/scripts/live-helpers
index 73d9f9d..950bbda 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -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