From: Harald Hoyer Date: Fri, 18 Sep 2009 10:28:36 +0000 (+0200) Subject: lvm: add rd_NO_LVMCONF X-Git-Tag: 003~169 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c53acc30152d82a450a6c21b71ed4253c95fe94a;p=thirdparty%2Fdracut.git lvm: add rd_NO_LVMCONF --- diff --git a/dracut.8 b/dracut.8 index 81932abf6..99d1e20da 100644 --- a/dracut.8 +++ b/dracut.8 @@ -135,6 +135,9 @@ disable LVM detection .TP .B rd_LVM_VG= only activate the volume groups with the given name +.TP +.B rd_NO_LVMCONF +remove any /etc/lvm/lvm.conf, which may exist in the initramfs .SH crypto LUKS .TP diff --git a/modules.d/90lvm/parse-lvm.sh b/modules.d/90lvm/parse-lvm.sh index 1af4e99e4..2d453e867 100644 --- a/modules.d/90lvm/parse-lvm.sh +++ b/modules.d/90lvm/parse-lvm.sh @@ -3,3 +3,8 @@ if getarg rd_NO_LVM; then rm -f /etc/udev/rules.d/64-lvm*.rules fi +if [ -e /etc/lvm/lvm.conf ] && getarg rd_NO_LVMCONF; then + rm -f /etc/lvm/lvm.conf +fi + +