os-prober-grub2-parsefix.patch 671 B

1234567891011121314151617181920212223
  1. Index: os-prober-1.58/linux-boot-probes/mounted/common/40grub2
  2. ===================================================================
  3. --- os-prober-1.58.orig/linux-boot-probes/mounted/common/40grub2
  4. +++ os-prober-1.58/linux-boot-probes/mounted/common/40grub2
  5. @@ -77,7 +77,7 @@ parse_grub_menu () {
  6. ignore_item=1
  7. fi
  8. ;;
  9. - linux)
  10. + linux*)
  11. # Hack alert: sed off any (hdn,n) but
  12. # assume the kernel is on the same
  13. # partition.
  14. @@ -90,7 +90,7 @@ parse_grub_menu () {
  15. kernel="/boot$kernel"
  16. fi
  17. ;;
  18. - initrd)
  19. + initrd*)
  20. initrd="$(echo "$2" | sed 's/(.*)//')"
  21. # Initrd same.
  22. if [ "$partition" != "$bootpart" ]; then