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