From c53acc30152d82a450a6c21b71ed4253c95fe94a Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 18 Sep 2009 12:28:36 +0200 Subject: [PATCH] lvm: add rd_NO_LVMCONF --- dracut.8 | 3 +++ modules.d/90lvm/parse-lvm.sh | 5 +++++ 2 files changed, 8 insertions(+) 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 + + -- 2.47.3