os-prober-factored-logger-efi-fix.patch 602 B

1234567891011121314151617
  1. Index: os-prober/os-probes/mounted/x86/05efi
  2. ===================================================================
  3. --- os-prober.orig/os-probes/mounted/x86/05efi
  4. +++ os-prober/os-probes/mounted/x86/05efi
  5. @@ -59,7 +59,11 @@ ret=1
  6. for test in /usr/lib/os-probes/mounted/efi/*; do
  7. debug "running subtest $test"
  8. if [ -f "$test" ] && [ -x "$test" ]; then
  9. + # we need results of subtest in stdout
  10. + orig_fd_res=$fd_result
  11. + export fd_result=1
  12. entry=$("$test" "$mpoint/$efi")
  13. + export fd_result=$orig_fd_res
  14. if [ -n "$entry" ]; then
  15. debug "bootloader $entry found by subtest $test"
  16. ret=0