summaryrefslogtreecommitdiffstats
path: root/hooks/encrypt
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/encrypt')
-rw-r--r--hooks/encrypt3
1 files changed, 2 insertions, 1 deletions
diff --git a/hooks/encrypt b/hooks/encrypt
index 4992270..30dfc12 100644
--- a/hooks/encrypt
+++ b/hooks/encrypt
@@ -4,8 +4,9 @@
run_hook ()
{
mkdevice () { /bin/mknod "/dev/mapper/control" c ${1} ${2}; }
+
+ /bin/modprobe -a -q dm-crypt >/dev/null 2>&1
if [ -e "/sys/class/misc/device-mapper" ]; then
- /bin/modprobe -a -q dm-crypt >/dev/null 2>&1
read dev_t < /sys/class/misc/device-mapper/dev
OLDIFS=$IFS; IFS=:
mkdevice $dev_t