]> 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>
Wed, 14 May 2014 14:38:49 +0000 (16:38 +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!

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

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