summarylogtreecommitdiffstats
path: root/os-prober-factored-logger-efi-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'os-prober-factored-logger-efi-fix.patch')
-rw-r--r--os-prober-factored-logger-efi-fix.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/os-prober-factored-logger-efi-fix.patch b/os-prober-factored-logger-efi-fix.patch
new file mode 100644
index 00000000000..5c66fa00bb8
--- /dev/null
+++ b/os-prober-factored-logger-efi-fix.patch
@@ -0,0 +1,16 @@
+Index: os-prober/os-probes/mounted/x86/05efi
+===================================================================
+--- os-prober.orig/os-probes/mounted/x86/05efi
++++ os-prober/os-probes/mounted/x86/05efi
+@@ -59,7 +59,11 @@ ret=1
+ for test in /usr/lib/os-probes/mounted/efi/*; do
+ debug "running subtest $test"
+ if [ -f "$test" ] && [ -x "$test" ]; then
++ # we need results of subtest in stdout
++ orig_fd_res=$fd_result
++ export fd_result=1
+ entry=$("$test" "$mpoint/$efi")
++ export fd_result=$orig_fd_res
+ if [ -n "$entry" ]; then
+ debug "bootloader $entry found by subtest $test"
+ ret=0