[Fai-commit] r6724 - trunk/bin
Michael Tautschnig
mt at alioth.debian.org
Sat Oct 22 15:01:45 UTC 2011
Author: mt
Date: 2011-10-22 15:01:45 +0000 (Sat, 22 Oct 2011)
New Revision: 6724
Modified:
trunk/bin/setup-storage
Log:
setup-storage: test mdadm-startall for existence before running it
Modified: trunk/bin/setup-storage
===================================================================
--- trunk/bin/setup-storage 2011-10-22 14:56:43 UTC (rev 6723)
+++ trunk/bin/setup-storage 2011-10-22 15:01:45 UTC (rev 6724)
@@ -157,7 +157,7 @@
defined($FAI::udev_settle) or die "Failed to find determine a proper way to tell udev to settle; is udev installed?";
# start all RAID arrays in case some of the aren't running yet
-`mdadm-startall`;
+&FAI::in_path("mdadm-startall") and `mdadm-startall`;
`$FAI::udev_settle`;
# read the sizes and partition tables of all disks listed in $FAI::disks
More information about the Fai-commit
mailing list