Blame SOURCES/0013-Issue-with-EFI-detection-in-logger-873207.patch

e8c52d
From 2ee8f66a5d1b25f9d037b44456e006a9972bb190 Mon Sep 17 00:00:00 2001
e8c52d
From: Hedayat Vatankhah <hedayatv@gmail.com>
e8c52d
Date: Wed, 19 Jun 2013 01:44:55 +0430
e8c52d
Subject: [PATCH 13/18] Issue with EFI detection in logger (#873207)
e8c52d
e8c52d
Fixed a bug introduced with the logger refactoring that caused EFI
e8c52d
detection to fail.
e8c52d
e8c52d
Resolves: rhbz#873207
e8c52d
---
e8c52d
 os-probes/mounted/x86/05efi | 4 ++++
e8c52d
 1 file changed, 4 insertions(+)
e8c52d
e8c52d
diff --git a/os-probes/mounted/x86/05efi b/os-probes/mounted/x86/05efi
e8c52d
index 1e506fc..8a6288b 100755
e8c52d
--- a/os-probes/mounted/x86/05efi
e8c52d
+++ b/os-probes/mounted/x86/05efi
c62eab
@@ -58,7 +58,11 @@ ret=1
c62eab
 for test in /usr/lib/os-probes/mounted/efi/*; do
c62eab
 	debug "running subtest $test"
c62eab
 	if [ -f "$test" ] && [ -x "$test" ]; then
c62eab
+		# we need results of subtest in stdout
c62eab
+		orig_fd_res=$fd_result
c62eab
+		export fd_result=1
c62eab
 		entry=$("$test" "$mpoint/$efi")
c62eab
+		export fd_result=$orig_fd_res
c62eab
 		if [ -n "$entry" ]; then
c62eab
 			debug "bootloader $entry found by subtest $test"
c62eab
 			ret=0
e8c52d
-- 
e8c52d
2.5.5
e8c52d