Skip to content

Ship Apple's HfsPlus.efi in the zip, keep OpenHfsPlus.efi as the fallback - #5

Merged
DrogaBox merged 1 commit into
mainfrom
feat/apple-hfsplus
Nov 26, 2026
Merged

DrogaBox merged 1 commit into
mainfrom
feat/apple-hfsplus

Conversation

@DrogaBox

Copy link
Copy Markdown
Owner

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_DIR points it at a local OcBinaryData Drivers folder for offline builds. If neither works, the build prints FALLING 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=1 turns 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 in build_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:

  • X64 RELEASE and DEBUG build. Both zips have HfsPlus.efi with sha256 a55b5fff… plus OpenHfsPlus.efi. ocvalidate is clean on Sample.plist and SampleCustom.plist, both in the build and with the zip's own ocvalidate.
  • The fallback, run with no network, a bad hash, a missing local file and REQUIRE_HFSPLUS=1. The rewritten Sample/SampleCustom pass ocvalidate.
  • QEMU (OVMF, hvf) with the zip's EFI loading HfsPlus.efi, plus a second disk formatted HFS+ with a fake boot.efi: the picker comes up with that HFS+ volume as an entry. The DEBUG log shows HfsPlus.efi loaded, the volume added and "Showing menu". OVMF has no HFS+ driver of its own.

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.

…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.
@DrogaBox
DrogaBox merged commit 5656e86 into main Nov 26, 2026
22 checks passed
@DrogaBox
DrogaBox deleted the feat/apple-hfsplus branch November 26, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant