32 lines
906 B
Diff
32 lines
906 B
Diff
|
From c910bbb8d6678c01799a0bbe1b02f5182214c023 Mon Sep 17 00:00:00 2001
|
||
|
From: Harald Hoyer <harald@redhat.com>
|
||
|
Date: Wed, 14 May 2014 16:38:49 +0200
|
||
|
Subject: [PATCH] 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!
|
||
|
---
|
||
|
modules.d/90mdraid/module-setup.sh | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
|
||
|
index ac745d1cef..81c94f2d36 100755
|
||
|
--- a/modules.d/90mdraid/module-setup.sh
|
||
|
+++ b/modules.d/90mdraid/module-setup.sh
|
||
|
@@ -54,6 +54,8 @@ cmdline() {
|
||
|
done
|
||
|
)
|
||
|
|
||
|
+ [[ -z "$UUID" ]] && continue
|
||
|
+
|
||
|
if ! [[ ${_activated[${UUID}]} ]]; then
|
||
|
printf "%s" " rd.md.uuid=${UUID}"
|
||
|
_activated["${UUID}"]=1
|
||
|
--
|
||
|
1.9.3
|
||
|
|