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

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