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/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 diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4