From 499befa692be86f5ce6b5c98c19a868c27ed6603 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 17 Jul 2009 15:00:07 +0200 Subject: [PATCH] mdraid: only install mdadm.conf in hostonly mode --- modules.d/90mdraid/install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules.d/90mdraid/install b/modules.d/90mdraid/install index e1dbdbf..2776557 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" -- 2.7.4