From: Harald Hoyer Date: Wed, 27 Jan 2010 14:52:08 +0000 (+0100) Subject: mdraid: prefer /etc/mdadm.conf over /etc/mdadm/mdadm.conf X-Git-Tag: 005~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8231fa5c29301f422d7bbede0d8fd5de0d9e7e5;p=thirdparty%2Fdracut.git mdraid: prefer /etc/mdadm.conf over /etc/mdadm/mdadm.conf see https://bugzilla.redhat.com/show_bug.cgi?id=557339 https://bugzilla.redhat.com/show_bug.cgi?id=559073 --- diff --git a/modules.d/90mdraid/install b/modules.d/90mdraid/install index 059edfbd5..6045aaf90 100755 --- a/modules.d/90mdraid/install +++ b/modules.d/90mdraid/install @@ -22,8 +22,11 @@ if ! mdadm -Q -e imsm /dev/null &> /dev/null; then fi if [[ $hostonly ]] || [[ $mdadmconf = "yes" ]]; then - [ -f /etc/mdadm/mdadm.conf ] && inst /etc/mdadm/mdadm.conf /etc/mdadm.conf - [ -f /etc/mdadm.conf ] && inst /etc/mdadm.conf + if [ -f /etc/mdadm.conf ]; then + inst /etc/mdadm.conf + else + [ -f /etc/mdadm/mdadm.conf ] && inst /etc/mdadm/mdadm.conf /etc/mdadm.conf + fi fi if [ -x /sbin/mdmon ] ; then