]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
lvm: add rd_NO_LVMCONF
authorHarald Hoyer <harald@redhat.com>
Fri, 18 Sep 2009 10:28:36 +0000 (12:28 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 18 Sep 2009 10:28:36 +0000 (12:28 +0200)
dracut.8
modules.d/90lvm/parse-lvm.sh

index 81932abf6a3d37ab2a4b06833972cae973e45f8f..99d1e20dacdc6cffec653dad1529c18cc22f7054 100644 (file)
--- a/dracut.8
+++ b/dracut.8
@@ -135,6 +135,9 @@ disable LVM detection
 .TP
 .B rd_LVM_VG=<volume group name>
 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
index 1af4e99e4ff9e8dedb533edf63f0b451a86651a2..2d453e867c0865124b28774356f00ed7f1f0e87b 100644 (file)
@@ -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
+
+