summaryrefslogtreecommitdiffstats
path: root/abs/core/lvm2/lvm2_hook
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2014-02-16 23:54:48 (GMT)
committerJames Meyer <james.meyer@operamail.com>2014-02-19 19:03:03 (GMT)
commita5ab0f4ea7aea271cd87c75a9cdfac595dcc97b7 (patch)
treed711f3e6f9942a4399d4704e566f5447da68cf89 /abs/core/lvm2/lvm2_hook
parente9cd17be0f57ba3a9abd1af55e306b5bb1a5dce6 (diff)
downloadlinhes_pkgbuild-a5ab0f4ea7aea271cd87c75a9cdfac595dcc97b7.zip
linhes_pkgbuild-a5ab0f4ea7aea271cd87c75a9cdfac595dcc97b7.tar.gz
linhes_pkgbuild-a5ab0f4ea7aea271cd87c75a9cdfac595dcc97b7.tar.bz2
lvm2
update binary path to /usr/bin refs #961
Diffstat (limited to 'abs/core/lvm2/lvm2_hook')
-rw-r--r--abs/core/lvm2/lvm2_hook24
1 files changed, 6 insertions, 18 deletions
diff --git a/abs/core/lvm2/lvm2_hook b/abs/core/lvm2/lvm2_hook
index e69b334..65de7bd 100644
--- a/abs/core/lvm2/lvm2_hook
+++ b/abs/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: