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

 
 

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

bug #42954: chainloading OS X bootloader fails

Submitted by:  Chris Murphy <chrismurphy>
Submitted on:  Sat 09 Aug 2014 05:17:42 PM UTC  
 
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenRelease: 
Release: 2.02~beta1Reproducibility: Every Time
Planned Release: None

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>

 

Attached Files
file #32323:  IMG_20141026_212425-2.jpg added by chrismurphy (276kB - image/jpeg - grubx64.efi built from today's master branch)
file #32322:  IMG_20141026_153328-2.jpg added by chrismurphy (167kB - image/jpeg - grub2-2.00-22.fc19)
file #32321:  IMG_20141026_152834-2.jpg added by chrismurphy (197kB - 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
  • -unavailable- added by chrismurphy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 27 Oct 2014 03:30:35 AM UTCchrismurphyAttached File-=>Added IMG_20141026_212425-2.jpg, #32323
    Sun 26 Oct 2014 09:45:13 PM UTCchrismurphyAttached File-=>Added IMG_20141026_153328-2.jpg, #32322
    Sun 26 Oct 2014 09:42:44 PM UTCchrismurphyAttached File-=>Added IMG_20141026_152834-2.jpg, #32321
    Sat 09 Aug 2014 05:17:42 PM UTCchrismurphyAttached File-=>Added IMG_20140809_105112.jpg, #31880

    Back to the top


    Powered by Savane 3.1-cleanup