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

ace748
From 72ae0fd418680b7e4931ce760efdfea455740ccb Mon Sep 17 00:00:00 2001
ace748
From: Harald Hoyer <harald@redhat.com>
ace748
Date: Fri, 12 Aug 2016 11:24:47 +0200
ace748
Subject: [PATCH] systemd/dracut-cmdline.sh: unset "UNSET" $root
ace748
ace748
https://bugzilla.redhat.com/show_bug.cgi?id=1365667
ace748
caused by commit 9aa224cc
ace748
---
ace748
 modules.d/98systemd/dracut-cmdline.sh | 2 ++
ace748
 1 file changed, 2 insertions(+)
ace748
ace748
diff --git a/modules.d/98systemd/dracut-cmdline.sh b/modules.d/98systemd/dracut-cmdline.sh
ace748
index 17b30a3..630f3f9 100755
ace748
--- a/modules.d/98systemd/dracut-cmdline.sh
ace748
+++ b/modules.d/98systemd/dracut-cmdline.sh
ace748
@@ -79,6 +79,8 @@ esac
ace748
 [ -z "${root}${root_unset}" ] && die "Empty root= argument"
ace748
 [ -z "$rootok" ] && die "Don't know how to handle 'root=$root'"
ace748
 
ace748
+[ "$root" = "UNSET" ] && unset root
ace748
+
ace748
 export root rflags fstype netroot NEWROOT
ace748
 
ace748
 export -p > /dracut-state.sh