From: Harald Hoyer Date: Mon, 2 Aug 2010 11:31:36 +0000 (+0200) Subject: mdraid: remove mdadm.conf on rd_NO_MDADMCONF X-Git-Tag: 007~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21a7b844862363efed2488229bd25adde23be811;p=thirdparty%2Fdracut.git mdraid: remove mdadm.conf on rd_NO_MDADMCONF --- diff --git a/modules.d/90mdraid/parse-md.sh b/modules.d/90mdraid/parse-md.sh index 6e2a3bfb9..5d03d5c2c 100755 --- a/modules.d/90mdraid/parse-md.sh +++ b/modules.d/90mdraid/parse-md.sh @@ -30,6 +30,10 @@ if [ -e /etc/mdadm.conf ] && ! getarg rd_NO_MDADMCONF; then rm -f /pre-pivot/*mdraid-cleanup.sh fi +if getarg rd_NO_MDADMCONF; then + rm -f /etc/mdadm/mdadm.conf /etc/mdadm.conf +fi + # noiswmd nodmraid for anaconda / rc.sysinit compatibility # note nodmraid really means nobiosraid, so we don't want MDIMSM then either if getarg rd_NO_MDIMSM || getarg noiswmd || getarg nodmraid; then