From 21a7b844862363efed2488229bd25adde23be811 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 2 Aug 2010 13:31:36 +0200 Subject: [PATCH] mdraid: remove mdadm.conf on rd_NO_MDADMCONF --- modules.d/90mdraid/parse-md.sh | 4 ++++ 1 file changed, 4 insertions(+) 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