]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
mdraid: remove mdadm.conf on rd_NO_MDADMCONF
authorHarald Hoyer <harald@redhat.com>
Mon, 2 Aug 2010 11:31:36 +0000 (13:31 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 2 Aug 2010 12:18:00 +0000 (14:18 +0200)
modules.d/90mdraid/parse-md.sh

index 6e2a3bfb959535d8bcf921d9dea3b8db5c603b54..5d03d5c2c0498a0aa6cac3c4a0bf8ffd23a72d59 100755 (executable)
@@ -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