00-fsdev.sh: move md arrays initialization code to start_md_volumes

master
Fabio Erculiani 11 years ago
parent d5ebdb3e56
commit cd1cf77029

@ -170,6 +170,13 @@ setup_md_device() {
fi fi
} }
start_md_volumes() {
good_msg "Starting md devices"
mdadm --assemble --scan
# do not bad_msg, user could have this enabled even though
# no RAID is currently available.
}
start_volumes() { start_volumes() {
# Here, we check for /dev/device-mapper, and if it exists, we setup a # Here, we check for /dev/device-mapper, and if it exists, we setup a
# a symlink, which should hopefully fix bug #142775 and bug #147015 # a symlink, which should hopefully fix bug #142775 and bug #147015
@ -179,10 +186,7 @@ start_volumes() {
fi fi
if [ "${USE_MDADM}" = "1" ]; then if [ "${USE_MDADM}" = "1" ]; then
good_msg "Activating md raid devices" start_md_volumes
mdadm --assemble --scan
# 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