Blame 0152-base-dracut-lib.sh-getargs-don-t-return-1-for-empty-.patch

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