Blame SOURCES/0170-mdraid-module-setup.sh-fixed-print-cmdline-for-empty.patch

a56a5e
From ec158d758b880fc966f3f3e6b819ffcfbff7227d Mon Sep 17 00:00:00 2001
a56a5e
From: Harald Hoyer <harald@redhat.com>
a56a5e
Date: Wed, 14 May 2014 16:38:49 +0200
a56a5e
Subject: [PATCH] mdraid/module-setup.sh: fixed print-cmdline for empty UUID
a56a5e
a56a5e
fixes
a56a5e
a56a5e
/usr/lib/dracut/modules.d/90mdraid/module-setup.sh: line 60:
a56a5e
_activated["${UUID}"]: bad array subscript
a56a5e
a56a5e
Thanks to Jan ONDREJ for spotting this!
a56a5e
a56a5e
(cherry picked from commit 19bb14c3467233f8c98f76b3fa57047a3a31e1a3)
a56a5e
---
a56a5e
 modules.d/90mdraid/module-setup.sh | 2 ++
a56a5e
 1 file changed, 2 insertions(+)
a56a5e
a56a5e
diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
1755ca
index 1e03847f..815a3ebc 100755
a56a5e
--- a/modules.d/90mdraid/module-setup.sh
a56a5e
+++ b/modules.d/90mdraid/module-setup.sh
a56a5e
@@ -50,6 +50,8 @@ cmdline() {
a56a5e
             done
a56a5e
         )
a56a5e
 
a56a5e
+        [[ -z "$UUID" ]] && continue
a56a5e
+
a56a5e
         if ! [[ ${_activated[${UUID}]} ]]; then
a56a5e
             printf "%s" " rd.md.uuid=${UUID}"
a56a5e
             _activated["${UUID}"]=1