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

View File

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

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

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