File fwupdate-skip-fwupdate-verbose.patch of Package fwupdate.18918

From c0f76a7a9f85f3e81ab19986489c62256f96d712 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Fri, 8 Sep 2017 12:32:44 -0400
Subject: [PATCH] Don't remove FWUPDATE_VERBOSE when cleaning up.

Signed-off-by: Peter Jones <pjones@redhat.com>
---
 efi/fwupdate.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/efi/fwupdate.c b/efi/fwupdate.c
index d9fb842..62ed5fe 100644
--- a/efi/fwupdate.c
+++ b/efi/fwupdate.c
@@ -389,9 +389,14 @@ find_updates(UINTN *n_updates_out, update_table ***updates_out)
 		 * If it's not one of our state variables, keep going.
 		 */
 		if (CompareMem(&vendor_guid, &fwupdate_guid,
-			       sizeof (vendor_guid))) {
+			       sizeof (vendor_guid)))
+			continue;
+
+		/*
+		 * Don't delete our debugging settings.
+		 */
+		if (StrCmp(variable_name, L"FWUPDATE_VERBOSE") == 0)
 			continue;
-		}
 
 		UINTN vns = StrLen(variable_name);
 		CHAR16 vn[vns + 1];
-- 
2.19.0

openSUSE Build Service is sponsored by