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
)
parent
705c84321d
commit
ec158d758b
|
@ -50,6 +50,8 @@ cmdline() {
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
[[ -z "$UUID" ]] && continue
|
||||||
|
|
||||||
if ! [[ ${_activated[${UUID}]} ]]; then
|
if ! [[ ${_activated[${UUID}]} ]]; then
|
||||||
printf "%s" " rd.md.uuid=${UUID}"
|
printf "%s" " rd.md.uuid=${UUID}"
|
||||||
_activated["${UUID}"]=1
|
_activated["${UUID}"]=1
|
||||||
|
|
Loading…
Reference in New Issue