aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-10-07 08:32:09 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 04:27:29 +0200
commit529eee61e485ad305ae78f4c54ee3377e0bd6b44 (patch)
tree0a1e250cc5592dc3ec221685f49889a9d2e3ce0f
parent7311edb67891fc8a74ccf75677ee4c6a20634bb7 (diff)
Bugfix.
-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