aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpre-partman.sh3
1 files changed, 3 insertions, 0 deletions
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