From 59220585ee3ca81a12a56aec64c2313538a8ac79 Mon Sep 17 00:00:00 2001 From: Tails developers Date: Tue, 8 Nov 2011 17:33:46 +0100 Subject: [PATCH] Making sure dm-crypt is loaded when dealing with LUKS devices. --- scripts/live-helpers | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.11.4.GIT