[PATCH] Don't start mdmon if it isn't installed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



diff --git a/modules.d/90mdraid/mdmon-pre-pivot.sh b/modules.d/90mdraid/mdmon-pre-pivot.sh
index b1f379f..db5a210 100644
--- a/modules.d/90mdraid/mdmon-pre-pivot.sh
+++ b/modules.d/90mdraid/mdmon-pre-pivot.sh
@@ -1,3 +1,3 @@
# switch any mdmon instances to newroot
-[ -f /etc/mdadm.conf ] && /sbin/mdmon /proc/mdstat $NEWROOT
+[ -f /etc/mdadm.conf ] && [ -x /sbin/mdmon ] && /sbin/mdmon /proc/mdstat $NEWROOT
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux