From 451fac91b44bd7a0d6d19cb7fbcc7923f2020668 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 20 Oct 2013 11:50:11 +0200 Subject: [PATCH] 00-fsdev.sh: use more compact code in start_volumes --- defaults/initrd.d/00-fsdev.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/defaults/initrd.d/00-fsdev.sh b/defaults/initrd.d/00-fsdev.sh index a189195..820e858 100755 --- a/defaults/initrd.d/00-fsdev.sh +++ b/defaults/initrd.d/00-fsdev.sh @@ -185,9 +185,7 @@ start_volumes() { ln -sf /dev/device-mapper /dev/mapper/control fi - if [ "${USE_MDADM}" = "1" ]; then - start_md_volumes - fi + [ "${USE_MDADM}" = "1" ] && start_md_volumes if [ "${USE_MULTIPATH_NORMAL}" = "1" ]; then good_msg "Scanning for multipath devices"