mdraid: only install mdadm.conf in hostonly mode

master
Harald Hoyer 2009-07-17 15:00:07 +02:00
parent 435185d7ab
commit 499befa692
1 changed files with 5 additions and 2 deletions

View File

@ -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"