os-prober-xnu-x86.patch 542 B

1234567891011121314151617
  1. Patches XNU detection out of os-prober hook on non-x86 architectures. The
  2. menu entries generated for those are invalid for non-x86 Mac stuff.
  3. --- util/grub.d/30_os-prober.in
  4. +++ util/grub.d/30_os-prober.in
  5. @@ -42,6 +42,11 @@ if [ -z "${OSPROBED}" ] ; then
  6. fi
  7. osx_entry() {
  8. + # GRUB won't load XNU outside of x86, no entry
  9. + case "x`uname -m`" in
  10. + xi?86|xx86_64) ;;
  11. + *) return ;;
  12. + esac
  13. if [ x$2 = x32 ]; then
  14. # TRANSLATORS: it refers to kernel architecture (32-bit)
  15. bitstr="$(gettext "(32-bit)")"