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

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