bugGNU GRUB - Bugs: bug #42954, chainloading OS X bootloader fails

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #42954: chainloading OS X bootloader fails

Submitter:  Chris Murphy <chrismurphy>
Submitted:  Sat 09 Aug 2014 05:17:42 PM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Documentation
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  2.02~beta1
Release:  Reproducibility:  Every Time
Planned Release:  2.03+

Mon 27 Oct 2014 03:57:20 AM UTC, comment #1: 

Explicitly setting root appears to be necessary. This works:

set root=(hd1,gpt3)
chainloader (hd1,gpt3)/System/Library/CoreServices/boot.efi
boot

It's necessary to do an ls first in order to determine the actual hdX designation, which on two systems flips non-deterministically between boots between hd0 and hd1, sometimes hd3 if another device is attached, such as a USB stick.

Tested on master branch, Fedora 20 and Fedora 21 GRUB; two different vintage MacbookPros (8,2 and 9,2); and OS X 10.8.5 with an encrypted CoreStorage volume, and OS X 10.10 unencrypted CoreStorage volume.

This bug is therefore probably not a bug!

Chris Murphy <chrismurphy>
Sat 09 Aug 2014 05:17:42 PM UTC, original submission:  

Description of problem: Using GRUB to chainload the OS X bootloader doesn't work.


Version:
grub2-2.02-0.6.fc21

How reproducible:
Always

Steps to Reproduce:
1. GRUB command line
2. chainloader <pathtoboot.efi>
3. boot

Actual results:

I briefly see the display change to the graphical boot screen with an Apple logo in it; drops back to the grub text screen with various messages (see photo).

Mach-O file has bad magic number
Error loading kernel 'mach_kernel'

Also filed as:
https://bugzilla.redhat.com/show_bug.cgi?id=1128374

Chris Murphy <chrismurphy>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #32323:  IMG_20141026_212425-2.jpg added by chrismurphy (276KiB - image/jpeg - grubx64.efi built from today's master branch)
file #32322:  IMG_20141026_153328-2.jpg added by chrismurphy (167KiB - image/jpeg - grub2-2.00-22.fc19)
file #32321:  IMG_20141026_152834-2.jpg added by chrismurphy (197KiB - image/jpeg - grub2-2.00-25.fc20)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by chrismurphy (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-02 phcoder Item GroupSoftware Error Documentation
        Planned ReleaseNone 2.03+
    2014-10-27 chrismurphy Attached File- Added IMG_20141026_212425-2.jpg, #32323
    2014-10-26 chrismurphy Attached File- Added IMG_20141026_153328-2.jpg, #32322
    2014-10-26 chrismurphy Attached File- Added IMG_20141026_152834-2.jpg, #32321
    2014-08-09 chrismurphy Attached File- Added IMG_20140809_105112.jpg, #31880

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code