projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
435185d
)
mdraid: only install mdadm.conf in hostonly mode
author
Harald Hoyer
<harald@redhat.com>
Fri, 17 Jul 2009 13:00:07 +0000
(15:00 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Fri, 17 Jul 2009 14:00:19 +0000
(16:00 +0200)
modules.d/90mdraid/install
patch
|
blob
|
history
diff --git
a/modules.d/90mdraid/install
b/modules.d/90mdraid/install
index e1dbdbfa6a1907b361c17b6dddbaab588d6aecd0..27765579e606650d55599cd658abc75f09b57f6c 100755
(executable)
--- 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"