From cd1cf770292f181764f5bcd8fa1e4b45a25e75c9 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 20 Oct 2013 11:47:13 +0200 Subject: [PATCH] 00-fsdev.sh: move md arrays initialization code to start_md_volumes --- defaults/initrd.d/00-fsdev.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/defaults/initrd.d/00-fsdev.sh b/defaults/initrd.d/00-fsdev.sh index b24f482..a189195 100755 --- a/defaults/initrd.d/00-fsdev.sh +++ b/defaults/initrd.d/00-fsdev.sh @@ -170,6 +170,13 @@ setup_md_device() { 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() { # 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 @@ -179,10 +186,7 @@ start_volumes() { fi if [ "${USE_MDADM}" = "1" ]; then - good_msg "Activating md raid devices" - mdadm --assemble --scan - # do not bad_msg, user could have this enabled even though - # no RAID is currently available. + start_md_volumes fi if [ "${USE_MULTIPATH_NORMAL}" = "1" ]; then