Repository navigation
Ship Apple's HfsPlus.efi in the zip, keep OpenHfsPlus.efi as the fallback - #5
Merged
Merged
Conversation
…back Docs/Sample.plist already loads HfsPlus.efi and OpenCore's docs recommend it, but the zip only had OpenHfsPlus.efi. On a Gigabyte Z790 (i9-12900KF) OpenHfsPlus.efi froze the machine before the picker with the keyboard dead, with this fork and with official 1.0.8; Apple's HfsPlus.efi booted fine. DrogaBox/hfsplus.sh downloads HfsPlus.efi (X64) and HfsPlus32.efi (IA32) from OcBinaryData at c2a98980 and checks their sha256; the binaries are never committed. HFSPLUS_DIR takes them from a local OcBinaryData/Drivers instead. If they can't be had, the zip keeps only OpenHfsPlus.efi, its sample configs are switched to it, and the build prints FALLING BACK TO OpenHfsPlus.efi. REQUIRE_HFSPLUS=1 makes that an error, for releases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a Gigabyte Z790 with an i9-12900KF, OpenHfsPlus.efi froze the machine before the picker with the keyboard dead. It happened with this fork and with official 1.0.8 too. Swapping just that driver for Apple's HfsPlus.efi fixed it: menu up, macOS on the desktop. Sample.plist already loads HfsPlus.efi and OpenCore's docs recommend it, but the zip never had it, so anyone building an EFI from the zip ended up on OpenHfsPlus.
Now packaging pulls HfsPlus.efi (X64) and HfsPlus32.efi (IA32, packaged as HfsPlus.efi) from OcBinaryData at c2a98980 and checks the sha256 of each. The binaries never go into this repo.
HFSPLUS_DIRpoints it at a local OcBinaryDataDriversfolder for offline builds. If neither works, the build printsFALLING BACK TO OpenHfsPlus.efi, leaves HfsPlus.efi out and switches the zip's Sample/SampleCustom to OpenHfsPlus.efi, so they still match what's in the zip.REQUIRE_HFSPLUS=1turns that into an error for releases. OpenHfsPlus.efi stays in the zip either way.The logic lives in
DrogaBox/hfsplus.sh, with a five-line hook inbuild_oc.tool, which keeps conflicts small when update-base.sh replays it. README and BASE.md explain it. Docs/Sample.plist is unchanged, since it already says HfsPlus.efi (and Resolution stays Max).Checked:
Not checked: IA32 (HfsPlus32.efi) only had its hash checked, no boot. I also haven't run this exact build on real hardware. The fix itself was confirmed on the Z790 with official 1.0.8 plus HfsPlus.efi.