summaryrefslogtreecommitdiffstats
path: root/modules.d/90lvm
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2012-04-28 15:23:10 +0100
committerJybz <j.biernacki@free.fr>2024-04-20 20:06:01 +0200
commit045536a6b8f79b7430fcf45ab43a9ca09307ad54 (patch)
treeda84ba67433111d6dedac8c2f9e8175937816dd3 /modules.d/90lvm
parentd785e19bde30649f292d6b265206c7149b27fade (diff)
downloadmageia-dracut-conf-045536a6b8f79b7430fcf45ab43a9ca09307ad54.tar
mageia-dracut-conf-045536a6b8f79b7430fcf45ab43a9ca09307ad54.tar.gz
mageia-dracut-conf-045536a6b8f79b7430fcf45ab43a9ca09307ad54.tar.bz2
mageia-dracut-conf-045536a6b8f79b7430fcf45ab43a9ca09307ad54.tar.xz
mageia-dracut-conf-045536a6b8f79b7430fcf45ab43a9ca09307ad54.zip
lvm: Ensure LVM is initialised in non-hostonly mode.
This is a bit of a hack, but it's needed if /usr is on LVM.
Diffstat (limited to 'modules.d/90lvm')
-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"