Blame SOURCES/0355-base-dracut-lib.sh-getargs-don-t-return-1-for-empty-.patch

64b87c
From d1f7f2ac046c77913d1ca97cf8414d9226ae1286 Mon Sep 17 00:00:00 2001
64b87c
From: Harald Hoyer <harald@redhat.com>
64b87c
Date: Fri, 9 Oct 2015 11:30:03 +0200
64b87c
Subject: [PATCH] base/dracut-lib.sh:getargs() don't return 1 for empty values
64b87c
64b87c
getargs() is only used with real values and not booleans.
64b87c
64b87c
So, return the values only.
64b87c
---
64b87c
 modules.d/99base/dracut-lib.sh | 2 --
64b87c
 1 file changed, 2 deletions(-)
64b87c
64b87c
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
64b87c
index 50bcf84..cb1ddd7 100755
64b87c
--- a/modules.d/99base/dracut-lib.sh
64b87c
+++ b/modules.d/99base/dracut-lib.sh
64b87c
@@ -320,8 +320,6 @@ getargs() {
64b87c
     if [ -n "$_gfound" ]; then
64b87c
         if [ $# -gt 0 ]; then
64b87c
             echo -n "$@"
64b87c
-        else
64b87c
-            echo -n 1
64b87c
         fi
64b87c
         debug_on
64b87c
         return 0