From 045536a6b8f79b7430fcf45ab43a9ca09307ad54 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sat, 28 Apr 2012 15:23:10 +0100 Subject: 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. --- modules.d/90lvm/non-hostonly-init-lvm.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 modules.d/90lvm/non-hostonly-init-lvm.sh 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" -- cgit v1.2.1