summaryrefslogtreecommitdiffstats
path: root/hooks/lvm2
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2006-06-14 13:26:36 +0200
committerTobias Powalowski <tpowa@archlinux.org>2006-06-14 13:26:36 +0200
commit9290f4f3f9adcdd0dde38957ffe1eada0564db09 (patch)
tree323ac6fd1277542242f48bd17d49cf2c5dad905a /hooks/lvm2
parent851b4e2c2b119692c30f185b1c0d10b07cacc322 (diff)
downloadmkinitcpio-9290f4f3f9adcdd0dde38957ffe1eada0564db09.tar.gz
mkinitcpio-9290f4f3f9adcdd0dde38957ffe1eada0564db09.tar.xz
'added hooks to the packages itself'
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@127 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'hooks/lvm2')
-rw-r--r--hooks/lvm218
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
-}