diff --git a/modules.d/90mdraid/parse-md.sh b/modules.d/90mdraid/parse-md.sh index 6e2a3bfb..5d03d5c2 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