|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
From c910bbb8d6678c01799a0bbe1b02f5182214c023 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
From: Harald Hoyer <harald@redhat.com>
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
Date: Wed, 14 May 2014 16:38:49 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
Subject: [PATCH] mdraid/module-setup.sh: fixed print-cmdline for empty UUID
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
fixes
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
/usr/lib/dracut/modules.d/90mdraid/module-setup.sh: line 60:
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
_activated["${UUID}"]: bad array subscript
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
Thanks to Jan ONDREJ for spotting this!
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
modules.d/90mdraid/module-setup.sh | 2 ++
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
1 file changed, 2 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
index ac745d1cef..81c94f2d36 100755
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
--- a/modules.d/90mdraid/module-setup.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
+++ b/modules.d/90mdraid/module-setup.sh
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
@@ -54,6 +54,8 @@ cmdline() {
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
done
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
)
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
+ [[ -z "$UUID" ]] && continue
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
if ! [[ ${_activated[${UUID}]} ]]; then
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
printf "%s" " rd.md.uuid=${UUID}"
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
_activated["${UUID}"]=1
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
--
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
1.9.3
|
|
Zbigniew Jędrzejewski-Szmek |
7f4a44 |
|