menuentry "SnowLeopard" { insmod hfsplus set root=(hd0,1) chainloader +1 multiboot /boot } ... ... ... ... ... menuentry "SnowLeopard 2" { insmod hfsplus set root=(hd0,8) chainloader +1 multiboot /boot }
I'm surprised either command works, honestly, because you're not directly referencing the OS X boot loader, nor are you using the GRUB2 specific XNU boot loader. Nor does OS X have a boot partition or directory. There is an entry in the HFSJ volume header that points to the currently chosen OS X system's bootloader. So maybe by chance GRUB is being directed to /System/Library/CoreServices/boot.efi and it's the same one.
grub-mkconfig produces a totally different grub.cfg entry that uses the GRUB specific XNU boot loader rather than chainloading, or using the OS X bootloader. However, at least on my system, XNU kernel panics. So your method maybe provides some limited work around for that bug.
Chris Murphy |