os-prober-mounted-partitions-fix.patch 826 B

123456789101112131415161718192021222324252627
  1. Index: os-prober/common.sh
  2. ===================================================================
  3. --- os-prober.orig/common.sh
  4. +++ os-prober/common.sh
  5. @@ -146,7 +146,7 @@ parse_proc_mounts () {
  6. set -f
  7. set -- $line
  8. set +f
  9. - printf '%s %s %s\n' "$(mapdevfs "$1")" "$2" "$3"
  10. + printf '%s %s %s %s\n' "$(mapdevfs "$1")" "$2" "$3" "$1"
  11. done
  12. }
  13. Index: os-prober/linux-boot-prober
  14. ===================================================================
  15. --- os-prober.orig/linux-boot-prober
  16. +++ os-prober/linux-boot-prober
  17. @@ -167,7 +167,7 @@ else
  18. bootpart="${mountboot%% *}"
  19. bootmounted="${mountboot#* }"
  20. else
  21. - bootpart="$partition"
  22. + bootpart="$(grep " $mpoint/boot " "$OS_PROBER_TMP/mounted-map" | head -n1 | cut -d " " -f 4)"
  23. bootmounted=0
  24. fi
  25. for test in /usr/lib/linux-boot-probes/mounted/*; do