mdraid/module-setup.sh: fixed print-cmdline for empty UUID

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 19bb14c346)
Harald Hoyer 2014-05-14 16:38:49 +02:00
parent 705c84321d
commit ec158d758b
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ cmdline() {
done
)

[[ -z "$UUID" ]] && continue

if ! [[ ${_activated[${UUID}]} ]]; then
printf "%s" " rd.md.uuid=${UUID}"
_activated["${UUID}"]=1