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