387eb4a377
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/os-prober#2e94fd7ad1e4447a86142639b48e4d5334664d1a
17 lines
602 B
Diff
17 lines
602 B
Diff
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
|