From 9290f4f3f9adcdd0dde38957ffe1eada0564db09 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 14 Jun 2006 11:26:36 +0000 Subject: 'added hooks to the packages itself' git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@127 880c04e9-e011-0410-abf7-b926e227c9cd --- hooks/lvm2 | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 hooks/lvm2 (limited to 'hooks/lvm2') 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 -} -- cgit v1.2.3-24-g4f1b