Bug 772033

Summary: gptsync requires patching for installation on Mac hardware with FileVault 2 enabled
Product: [Fedora] Fedora Reporter: bcling
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: anaconda-maint-list, dcantrell, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-19 20:22:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
gptsync lib.c patch allowing Fedora 16 installation with FileVault 2 none

Description bcling 2012-01-05 17:41:25 UTC
Created attachment 550972 [details]
gptsync lib.c patch allowing Fedora 16 installation with FileVault 2

Description of problem:
Use of FileVault 2 with Mac OS 10.7 inhibits use of Fedora due to the inability of gptsync to create a hybrid MBR. This bug appears to apply to rawhide as well since the source code for gptsync has not changed.

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

How reproducible:
Always.

Steps to Reproduce:
1. Install Mac OS X with the following partitions through Disk Utility:
   A. Mac OS
   B. Windows (FAT) (optional, but was used in this troubleshooting sequence)
   C. Linux (FAT)
2. Install Windows 7 x64 (optional, see above).
3. Install Fedora 16 x86_64 (used Live CD to speed troubleshooting).
4. Enable FileVault 2
5. Attempt to boot to Windows or Fedora - unable to do so; holding down the option key does not show any other OS options.

Actual results:
Mac OS X is the only OS that will boot, due to the lack of a hybrid MBR. gptsync will not create the hybrid MBR due to two unrecognized partitions:
1. BIOS GRUB partition created for Fedora 16.
2. Apple CoreStorage partition type created during FileVault 2 activation.

Modifying and recompiling gptsync enables the hybrid MBR to be created.

Expected results:
gptsync should recognize all partitions created by Fedora, at a minimum. Enhanced recognition for Apple CoreStorage should be added as well.

Additional info:
1. Model Identifier: MacBookPro6,1
2. Using BootCamp to dual boot Mac OS (FileVault 2 enabled) and Windows is not an issue.
3. Attached patch (hack job) adds Apple CoreStorage and BIOS Boot as recognized partition GUIDs.
4. Use of rEFIt is not required but will work for booting purposes. rEFIt will require installation to the first partition (EFI, 200 MB default).

Comment 1 Jesse Keating 2012-07-19 20:22:28 UTC
We're not running gptsync any more in anaconda.  We're not going to ship it any more either.