From: Harald Hoyer Date: Fri, 17 Jul 2009 13:00:07 +0000 (+0200) Subject: mdraid: only install mdadm.conf in hostonly mode X-Git-Tag: 0.5~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=499befa692be86f5ce6b5c98c19a868c27ed6603;p=thirdparty%2Fdracut.git mdraid: only install mdadm.conf in hostonly mode --- diff --git a/modules.d/90mdraid/install b/modules.d/90mdraid/install index e1dbdbfa6..27765579e 100755 --- a/modules.d/90mdraid/install +++ b/modules.d/90mdraid/install @@ -23,8 +23,11 @@ else fi -[ -f /etc/mdadm/mdadm.conf ] && inst /etc/mdadm/mdadm.conf /etc/mdadm.conf -[ -f /etc/mdadm.conf ] && inst /etc/mdadm.conf +if [[ $hostonly ]]; then + [ -f /etc/mdadm/mdadm.conf ] && inst /etc/mdadm/mdadm.conf /etc/mdadm.conf + [ -f /etc/mdadm.conf ] && inst /etc/mdadm.conf +fi + if [ -x /sbin/mdmon ] ; then dracut_install mdmon inst_hook pre-pivot 30 "$moddir/mdmon-pre-pivot.sh"