os-prober-grepfix.patch 544 B

1234567891011121314
  1. Index: os-prober/os-probes/mounted/x86/83haiku
  2. ===================================================================
  3. --- os-prober.orig/os-probes/mounted/x86/83haiku
  4. +++ os-prober/os-probes/mounted/x86/83haiku
  5. @@ -13,7 +13,7 @@ case "$type" in
  6. *) debug "$partition is not a BeFS partition: exiting"; exit 1 ;;
  7. esac
  8. -if head -c 512 "$partition" | grep -qs "system.haiku_loader"; then
  9. +if head -c 512 "$partition" | grep -aqs "system.haiku_loader"; then
  10. debug "Stage 1 bootloader found"
  11. else
  12. debug "Stage 1 bootloader not found: exiting"