diff options
author | root <root@rshg047.dnsready.net> | 2011-07-11 23:12:58 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-07-11 23:12:58 +0000 |
commit | e03f4b9bc9da3327de94bc58aa92ecb836c1580d (patch) | |
tree | afaa891d69789d31246d52c3d9c47c236929d3c2 /core/cryptsetup/encrypt_hook | |
parent | 1a1b748f1738b1989a834d75b1623be21bf9bab5 (diff) |
Mon Jul 11 23:12:58 UTC 2011
Diffstat (limited to 'core/cryptsetup/encrypt_hook')
-rw-r--r-- | core/cryptsetup/encrypt_hook | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/cryptsetup/encrypt_hook b/core/cryptsetup/encrypt_hook index e84bc6ed7..54aaa2236 100644 --- a/core/cryptsetup/encrypt_hook +++ b/core/cryptsetup/encrypt_hook @@ -6,7 +6,8 @@ run_hook () /sbin/modprobe -a -q dm-crypt >/dev/null 2>&1 if [ -e "/sys/class/misc/device-mapper" ]; then if [ ! -e "/dev/mapper/control" ]; then - /bin/mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |') + mkdir /dev/mapper + mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |') fi [ "${quiet}" = "y" ] && CSQUIET=">/dev/null" |