00-fsdev.sh: do not bad_msg if mdadm --scan returns != 0

Historically, users have mdadm support enabled even in conditions
where md devices are not (yet?) available.
master v28
Fabio Erculiani 11 years ago
parent 6457d76923
commit de41ea1265

@ -180,8 +180,9 @@ start_volumes() {
if [ "${USE_MDADM}" = "1" ]; then if [ "${USE_MDADM}" = "1" ]; then
good_msg "Activating md raid devices" good_msg "Activating md raid devices"
mdadm --assemble --scan || \ mdadm --assemble --scan
bad_msg "mdadm failed to run, skipping raid assembly!" # do not bad_msg, user could have this enabled even though
# no RAID is currently available.
fi fi
if [ "${USE_MULTIPATH_NORMAL}" = "1" ]; then if [ "${USE_MULTIPATH_NORMAL}" = "1" ]; then

Loading…
Cancel
Save