diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-06-06 14:37:09 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-06-06 14:37:09 +0000 |
commit | c81b3455112a3b09a8341fc8c45a91bd92c15a12 (patch) | |
tree | 93c34f7cbae7441700884513f0e5ebcec9c5f512 /testing/lvm2/lvm2_hook | |
parent | 3695b5d62c2aef6e82abc95d775a2ebd89bce081 (diff) |
Mon Jun 6 14:37:05 UTC 2011
Diffstat (limited to 'testing/lvm2/lvm2_hook')
-rw-r--r-- | testing/lvm2/lvm2_hook | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/testing/lvm2/lvm2_hook b/testing/lvm2/lvm2_hook deleted file mode 100644 index 86d2ea582..000000000 --- a/testing/lvm2/lvm2_hook +++ /dev/null @@ -1,24 +0,0 @@ -# vim:set ft=sh: -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|:| |') - fi - - # If the lvmwait= parameter has been specified on the command line - # wait for the device(s) before trying to activate the volume group(s) - if [ -n "${lvmwait}" ]; then - for pvdev in $(echo ${lvmwait} | sed 's|,| |g'); do - poll_device ${pvdev} ${rootdelay} - done - fi - - [ "${quiet}" = "y" ] && LVMQUIET=">/dev/null" - - msg "Activating logical volumes..." - [ -d /etc/lvm ] && /sbin/lvm vgscan --sysinit - eval /sbin/lvm vgchange --sysinit -a y $LVMQUIET - fi -} |