summaryrefslogtreecommitdiff
path: root/core/lvm2/lvm2_hook
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-13 00:04:32 -0800
committerroot <root@rshg054.dnsready.net>2013-02-13 00:04:32 -0800
commit0671250710c3e7312a4693ac45ebbaacf471d1dc (patch)
treef40a26f2fd5267582cf25a84886471773bc160c8 /core/lvm2/lvm2_hook
parent29b0da64a462b6c5f6871b08e344b3ffa59cbd0a (diff)
Wed Feb 13 00:04:27 PST 2013
Diffstat (limited to 'core/lvm2/lvm2_hook')
-rw-r--r--core/lvm2/lvm2_hook24
1 files changed, 6 insertions, 18 deletions
diff --git a/core/lvm2/lvm2_hook b/core/lvm2/lvm2_hook
index e69b3349a..65de7bd2f 100644
--- a/core/lvm2/lvm2_hook
+++ b/core/lvm2/lvm2_hook
@@ -1,24 +1,12 @@
#!/usr/bin/ash
-run_hook() {
- local pvdev
-
- modprobe -q dm-mod >/dev/null 2>&1
-
- # If the lvmwait= parameter has been specified on the command line
- # wait for the device(s) before trying to activate the volume group(s)
- for pvdev in ${lvmwait//,/ }; do
- poll_device ${pvdev} ${rootdelay}
- done
-
- msg "Activating logical volumes..."
- [ -d /etc/lvm ] && lvm vgscan
+run_earlyhook() {
+ mkdir /run/lvm
+ lvmetad
+}
- if [ -n "$quiet" ]; then
- lvm vgchange --sysinit -a y >/dev/null
- else
- lvm vgchange --sysinit -a y
- fi
+run_cleanuphook() {
+ kill $(cat /run/lvmetad.pid)
}
# vim: set ft=sh ts=4 sw=4 et: