summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
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