mdraid: only install mdadm.conf in hostonly mode
authorHarald Hoyer <harald@redhat.com>
Fri, 17 Jul 2009 13:00:07 +0000 (15:00 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 17 Jul 2009 14:00:19 +0000 (16:00 +0200)
modules.d/90mdraid/install

index e1dbdbfa6a1907b361c17b6dddbaab588d6aecd0..27765579e606650d55599cd658abc75f09b57f6c 100755 (executable)
@@ -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"