Blame 0033-interpret-off-as-false-in-getargbool.patch

Harald Hoyer 3957aa
From 1cc57edaf56f309d6023f6fa5a86821f6dfbf919 Mon Sep 17 00:00:00 2001
Harald Hoyer 3957aa
From: Will Woods <wwoods@redhat.com>
Harald Hoyer 3957aa
Date: Wed, 11 Jan 2012 12:48:27 -0500
Harald Hoyer 3957aa
Subject: [PATCH] interpret 'off' as false in getargbool
Harald Hoyer 3957aa
Harald Hoyer 3957aa
Signed-off-by: Will Woods <wwoods@redhat.com>
Harald Hoyer 3957aa
---
Harald Hoyer 3957aa
 modules.d/99base/dracut-lib.sh |    1 +
Harald Hoyer 3957aa
 1 files changed, 1 insertions(+), 0 deletions(-)
Harald Hoyer 3957aa
Harald Hoyer 3957aa
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
Harald Hoyer 3957aa
index b4fb435..4897a3d 100755
Harald Hoyer 3957aa
--- a/modules.d/99base/dracut-lib.sh
Harald Hoyer 3957aa
+++ b/modules.d/99base/dracut-lib.sh
Harald Hoyer 3957aa
@@ -124,6 +124,7 @@ getargbool() {
Harald Hoyer 3957aa
     if [ -n "$_b" ]; then
Harald Hoyer 3957aa
         [ $_b = "0" ] && return 1
Harald Hoyer 3957aa
         [ $_b = "no" ] && return 1
Harald Hoyer 3957aa
+        [ $_b = "off" ] && return 1
Harald Hoyer 3957aa
     fi
Harald Hoyer 3957aa
     return 0
Harald Hoyer 3957aa
 }