diff --git a/mdadm.changes b/mdadm.changes index 8922746..c6cf9b6 100644 --- a/mdadm.changes +++ b/mdadm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 1 15:09:53 CEST 2010 - mmarek@suse.cz + +- mkinitrd-setup.sh: Fix for empty $md_devs variable. + ------------------------------------------------------------------- Wed Mar 24 17:37:27 CET 2010 - mmarek@suse.cz diff --git a/mdadm.spec b/mdadm.spec index c1d8186..94b0595 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -20,7 +20,7 @@ Name: mdadm Version: 3.0.3 -Release: 5 +Release: 6 BuildRequires: sgmltool PreReq: %fillup_prereq %insserv_prereq Obsoletes: raidtools diff --git a/mkinitrd-setup.sh b/mkinitrd-setup.sh index e46c257..06d43c5 100644 --- a/mkinitrd-setup.sh +++ b/mkinitrd-setup.sh @@ -90,7 +90,9 @@ fi # Remember which arrays are needed for the root or swap device and assemble # them all during boot. The root= or resume= option might not directly refer to # the array. -md_devs=$(printf '/dev/%s ' $md_devs) +if test -n "$md_devs"; then + md_devs=$(printf '/dev/%s ' $md_devs) +fi save_var need_mdadm save_var md_devs