From 529eee61e485ad305ae78f4c54ee3377e0bd6b44 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 7 Oct 2013 08:32:09 +0200 Subject: Bugfix. --- pre-partman.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pre-partman.sh b/pre-partman.sh index 61359a4..5c394ed 100755 --- a/pre-partman.sh +++ b/pre-partman.sh @@ -201,6 +201,9 @@ parted -sm $dev align-check opt ${system#$dev} # Encryption anna-install cryptsetup-udeb crypto-dm-modules +if dmsetup targets | cut -d' ' -f1 | grep -q '^crypt$'; then true; else + insmod /lib/modules/`uname -r`/kernel/drivers/md/dm-crypt.ko +fi arch=$(uname -m) if [ x"$arch" = x"x86_64" ]; then -- cgit v1.2.3