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

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