Bug 1632734 - Automatic MacOS X grub entry doesn't work
Summary: Automatic MacOS X grub entry doesn't work
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-25 12:13 UTC by Lukas Brabec
Modified: 2019-11-27 19:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-27 19:30:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukas Brabec 2018-09-25 12:13:18 UTC
I installed Fedora 29 Branched 20180923.n.0 on Mac Mini alongside with MacOS X 10.12 Sierra to test dual boot.

From the grub menu, I'm able to boot Fedora but not MacOS, the error is:

datasize: 571960 SumOfBytesHashed: 559104 SecDir->Size: 8
hashsize: 12848 SecDir->VirtualAddress: 0x0008B808
error: ../../grub-core/commands/boot.c:147:you need to load the kernel first.

If I hold alt-key (option key on apple keyboards?) during the start up chime and select the MacOS drive, the system boots as expected.

Snippet from /etc/grub2-efi.cfg (/boot/efi/EFI/fedora/grub.cfg):

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Mac OS X (on /dev/sda3)'  --class osx --class darwin --class os $menuentry_id_option 'osprober-xnu--19963d94877179b8'  {
	insmod part_gpt
	insmod hfsplus
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  19963d94877179b8
	else
	  search --no-floppy --fs-uuid --set=root 19963d94877179b8
	fi
	set gfxpayload=keep
        load_video
	insmod part_gpt
	insmod hfsplus
	search --no-floppy --fs-uuid --set=root  19963d94877179b8
	chainloader ($root)/System/Library/CoreServices/boot.efi
	boot
}


Output of os-prober:
/dev/sda5:Mac OS X:MacOSX:macosx


Partitions (gpt):
/dev/sda1         40    409639    409600   200M EFI System
/dev/sda2     409640 117771143 117361504    56G Apple Core storage
/dev/sda3  117771144 119040679   1269536 619.9M Apple boot
/dev/sda4  119042048 119451647    409600   200M EFI System
/dev/sda5  119451648 119861247    409600   200M Apple HFS/HFS+
/dev/sda6  119861248 121958399   2097152     1G Linux filesystem
/dev/sda7  121958400 234440703 112482304  53.7G Linux LVM



Version-Release number of selected component (if applicable):

Fedora 29 Branched 20180923.n.0

grub2-efi-x64-2.02-58.fc29.x86_64
os-prober-1.74-7.fc29.x86_64
mactel-boot-0.9-18.fc29.x86_64


Steps to Reproduce:
1. Install Fedora 29 in dualboot with MacOS
2. Try the MacOS X entry in grub

Comment 1 Ben Cotton 2019-10-31 20:41:13 UTC
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '29'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 29 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Ben Cotton 2019-11-27 19:30:08 UTC
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.