summarylogtreecommitdiffstats
path: root/lvm2_hook
diff options
context:
space:
mode:
Diffstat (limited to 'lvm2_hook')
-rw-r--r--lvm2_hook12
1 files changed, 12 insertions, 0 deletions
diff --git a/lvm2_hook b/lvm2_hook
new file mode 100644
index 00000000000..65de7bd2fdd
--- /dev/null
+++ b/lvm2_hook
@@ -0,0 +1,12 @@
+#!/usr/bin/ash
+
+run_earlyhook() {
+ mkdir /run/lvm
+ lvmetad
+}
+
+run_cleanuphook() {
+ kill $(cat /run/lvmetad.pid)
+}
+
+# vim: set ft=sh ts=4 sw=4 et: