summaryrefslogtreecommitdiff
path: root/core/cryptsetup/encrypt_hook
diff options
context:
space:
mode:
Diffstat (limited to 'core/cryptsetup/encrypt_hook')
-rw-r--r--core/cryptsetup/encrypt_hook3
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"