File fwupdate-unset-immutable-flag.patch of Package fwupdate

From 99d1f38b91d8b9fa904189e939a452b70721d30b Mon Sep 17 00:00:00 2001
From: Mario Limonciello <mario_limonciello@dell.com>
Date: Thu, 17 Mar 2016 10:20:45 -0500
Subject: [PATCH] Clear immuatable bit on efivar before trying to remove it
 (Fixes: #49)

---
 linux/cleanup.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/linux/cleanup.in b/linux/cleanup.in
index 38eb884..55c5cdd 100755
--- a/linux/cleanup.in
+++ b/linux/cleanup.in
@@ -19,6 +19,7 @@ for x in /boot/efi/EFI/@@EFIDIR@@/fw/fwupdate-* ; do
 done
 for x in /sys/firmware/efi/efivars/fwupdate-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 ; do
 	if [ "${x}" != "/sys/firmware/efi/efivars/fwupdate-*-0abba7dc-e516-4167-bbf5-4d9d1c739416" ]; then
+		chattr -i "${x}"
 		rm -f "${x}"
 	fi
 done
-- 
2.9.0

openSUSE Build Service is sponsored by