Blame SOURCES/0452-systemd-dracut-cmdline.sh-unset-UNSET-root.patch

712866
From fc77aca7ddbd33328066a943a4de09de34d25c4c Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Fri, 12 Aug 2016 11:24:47 +0200
712866
Subject: [PATCH] systemd/dracut-cmdline.sh: unset "UNSET" $root
712866
712866
https://bugzilla.redhat.com/show_bug.cgi?id=1365667
712866
caused by commit 9aa224cc
712866
---
712866
 modules.d/98systemd/dracut-cmdline.sh | 6 +++---
712866
 1 file changed, 3 insertions(+), 3 deletions(-)
712866
712866
diff --git a/modules.d/98systemd/dracut-cmdline.sh b/modules.d/98systemd/dracut-cmdline.sh
5c6c2a
index d22e4d6e..17b30a34 100755
712866
--- a/modules.d/98systemd/dracut-cmdline.sh
712866
+++ b/modules.d/98systemd/dracut-cmdline.sh
712866
@@ -26,7 +26,7 @@ source_conf /etc/conf.d
712866
 # between the case where it was set to the empty string and the case where it
712866
 # wasn't specified at all.
712866
 if ! root="$(getarg root=)"; then
712866
-    root='UNSET'
712866
+    root_unset='UNSET'
712866
 fi
712866
 
712866
 rflags="$(getarg rootflags=)"
712866
@@ -50,7 +50,7 @@ source_hook cmdline
712866
 
712866
 [ -f /lib/dracut/parse-resume.sh ] && . /lib/dracut/parse-resume.sh
712866
 
712866
-case "$root" in
712866
+case "${root}${root_unset}" in
712866
     block:LABEL=*|LABEL=*)
712866
         root="${root#block:}"
712866
         root="$(echo $root | sed 's,/,\\x2f,g')"
712866
@@ -76,7 +76,7 @@ case "$root" in
712866
         rootok=1 ;;
712866
 esac
712866
 
712866
-[ -z "$root" ] && die "Empty root= argument"
712866
+[ -z "${root}${root_unset}" ] && die "Empty root= argument"
712866
 [ -z "$rootok" ] && die "Don't know how to handle 'root=$root'"
712866
 
712866
 export root rflags fstype netroot NEWROOT