]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
Fix case where mdmon isn't available.
authorSeewer Philippe <philippe.seewer@bfh.ch>
Tue, 16 Jun 2009 03:03:02 +0000 (23:03 -0400)
committerWarren Togami <wtogami@redhat.com>
Tue, 16 Jun 2009 03:03:02 +0000 (23:03 -0400)
modules.d/90mdraid/install

index 1885f7ca57fc09830f29f231b6ef9f1446ecaa10..6b729d90c78dd42d179c69eb0ee65650754a549d 100755 (executable)
@@ -3,9 +3,11 @@ dracut_install mdadm
 inst /etc/passwd
 inst /etc/group
 instmods =drivers/md
-[ -x  /sbin/mdmon ] && dracut_install mdmon
 inst_rules "$moddir/70-mdadm.rules"
 [ -f /etc/mdadm/mdadm.conf ] && inst /etc/mdadm/mdadm.conf /etc/mdadm.conf
 [ -f /etc/mdadm.conf ] && inst /etc/mdadm.conf
-inst_hook pre-pivot 30 "$moddir/mdmon-pre-pivot.sh"
+if [ -x  /sbin/mdmon ] ; then
+    dracut_install mdmon
+    inst_hook pre-pivot 30 "$moddir/mdmon-pre-pivot.sh"
+fi