]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
mdraid/module-setup.sh: fixed print-cmdline for empty UUID
authorHarald Hoyer <harald@redhat.com>
Wed, 14 May 2014 14:38:49 +0000 (16:38 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Jul 2014 09:59:46 +0000 (11:59 +0200)
fixes

/usr/lib/dracut/modules.d/90mdraid/module-setup.sh: line 60:
_activated["${UUID}"]: bad array subscript

Thanks to Jan ONDREJ for spotting this!

(cherry picked from commit 19bb14c3467233f8c98f76b3fa57047a3a31e1a3)

modules.d/90mdraid/module-setup.sh

index 1e03847fd15c376aee7c028285177933b1b18092..815a3ebc37c2520b1320b9a72c18a1902a5e1185 100755 (executable)
@@ -50,6 +50,8 @@ cmdline() {
             done
         )
 
+        [[ -z "$UUID" ]] && continue
+
         if ! [[ ${_activated[${UUID}]} ]]; then
             printf "%s" " rd.md.uuid=${UUID}"
             _activated["${UUID}"]=1