summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules.d/90lvm/non-hostonly-init-lvm.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules.d/90lvm/non-hostonly-init-lvm.sh b/modules.d/90lvm/non-hostonly-init-lvm.sh
new file mode 100644
index 0000000..2e9212c
--- /dev/null
+++ b/modules.d/90lvm/non-hostonly-init-lvm.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
+# ex: ts=8 sw=4 sts=4 et filetype=sh
+
+printf 'cancel_wait_for_dev /dev/non-hostonly-lvm; rm "$job";' \
+ "$hookdir" >> $hookdir/initqueue/timeout/non-hostonly-lvm.sh
+
+wait_for_dev "/dev/non-hostonly-lvm"