diff options
Diffstat (limited to 'hooks/lvm2')
-rw-r--r-- | hooks/lvm2 | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/hooks/lvm2 b/hooks/lvm2 deleted file mode 100644 index 1eaae9a..0000000 --- a/hooks/lvm2 +++ /dev/null @@ -1,18 +0,0 @@ -# vim:set ft=sh: -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 - read dev_t < /sys/class/misc/device-mapper/dev - OLDIFS=$IFS; IFS=: - mkdevice $dev_t - IFS=$OLDIFS - - msg "Scanning logical volumes..." - /bin/lvm vgscan --ignorelockingfailure - msg "Activating logical volumes..." - /bin/lvm vgchange --ignorelockingfailure -ay - fi -} |