summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2011-11-08 17:33:46 +0100
committerDaniel Baumann <daniel@debian.org>2011-11-24 09:42:08 +0100
commit59220585ee3ca81a12a56aec64c2313538a8ac79 (patch)
tree98c6a4393d228f4279f25a8e9bc2ee320e82d897 /scripts
parentf11e6c940d7e9bb4c8d687237f128d3165fd4f72 (diff)
downloadlive-boot-59220585ee3ca81a12a56aec64c2313538a8ac79.tar.gz
live-boot-59220585ee3ca81a12a56aec64c2313538a8ac79.zip
Making sure dm-crypt is loaded when dealing with LUKS devices.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/live-helpers6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/live-helpers b/scripts/live-helpers
index 912d800..484ec93 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -330,6 +330,12 @@ find_cow_device ()
# Checking for a luks device
if [ "${PERSISTENT_ENCRYPTION}" = "luks" ] && [ -e /sbin/cryptsetup ]
then
+ if ! modprobe dm-crypt
+ then
+ log_warning_msg "Unable to load module dm-crypt"
+ continue
+ fi
+
if ! /sbin/cryptsetup isLuks ${devname}
then
# we only look for encrypted subdevices