Verify that binaries exist before startVolumes calls them

cleanup-cruft
Richard Yao 13 years ago
parent 51ad5c92ab
commit 0f399f48ff

@ -599,7 +599,12 @@ startVolumes() {
if [ "${USE_MDADM}" = '1' ] if [ "${USE_MDADM}" = '1' ]
then then
/sbin/mdadm --assemble --scan if [ -e '/sbin/mdadm' ]
then
/sbin/mdadm --assemble --scan
else
bad_msg "mdadm not found: skipping mdadm raid assembly!"
fi
fi fi
if [ "${USE_DMRAID_NORMAL}" = '1' ] if [ "${USE_DMRAID_NORMAL}" = '1' ]
@ -649,7 +654,12 @@ startVolumes() {
if [ "${USE_ZFS}" = '1' ] if [ "${USE_ZFS}" = '1' ]
then then
/sbin/zpool import -N -a ${ZPOOL_FORCE} if [ -e '/sbin/zpool' ]
then
/sbin/zpool import -N -a ${ZPOOL_FORCE}
else
bad_msg "zpool not found: skipping ZFS pool import!"
fi
fi fi
} }

Loading…
Cancel
Save