summaryrefslogtreecommitdiff
path: root/core/lvm2/lvm2_hook
diff options
context:
space:
mode:
Diffstat (limited to 'core/lvm2/lvm2_hook')
-rw-r--r--core/lvm2/lvm2_hook3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/lvm2/lvm2_hook b/core/lvm2/lvm2_hook
index 86d2ea582..874b91d06 100644
--- a/core/lvm2/lvm2_hook
+++ b/core/lvm2/lvm2_hook
@@ -4,7 +4,8 @@ run_hook ()
/sbin/modprobe -q dm-mod >/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
# If the lvmwait= parameter has been specified on the command line