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

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