omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Installer's ENABLE_LIMINE_FALLBACK=no hides Omarchy from the Mac boot picker, leaving it unbootable after an NVRAM reset

Open makoni opened this issue 2 months ago • 4 comments

What happens

On Apple hardware the installed system ends up with no \EFI\BOOT\BOOTX64.EFI on its ESP, because /etc/default/limine carries:

ENABLE_LIMINE_FALLBACK=no

Apple's firmware boot picker (hold ⌥ at power-on) only lists volumes that have that path. With it absent, Omarchy is invisible there — macOS and Windows show up, Omarchy does not. Booting still works day to day, because the installer also registers an NVRAM entry and puts it first:

BootCurrent: 0000
BootOrder: 0000,0080,0002
Boot0000* Limine  HD(4,GPT,...)/\EFI\limine\limine_x64.efi
Boot0002* Windows Boot Manager
Boot0080* Mac OS X

Why it matters on Macs specifically

That NVRAM entry is the only way in, and Mac NVRAM is routinely cleared: a PRAM reset wipes it, macOS updates re-bless themselves as the default, and a fully drained battery can lose it. After any of those there is no Omarchy entry in NVRAM and no icon in the boot picker — recovery needs a live USB or blessing the loader from macOS.

This is a recovery hazard rather than a day-one failure, which is probably why it has not come up.

Before / after on a MacBookPro14,3

Omarchy 4.0.3-1, limine 12.8.0-1, kernel 7.2.3-arch1-3, Apple EFI 529.140.2.0.0, dual-booting macOS and Boot Camp Windows:

nvme0n1p1  300M  vfat  EFI          <- Apple ESP (EFI/APPLE, EFI/Microsoft/Boot)
nvme0n1p2  93G   apfs               <- macOS
nvme0n1p3  94G   ntfs  BOOTCAMP     <- Windows
nvme0n1p4  2G    vfat  OMARCHY_EFI  <- Omarchy's own ESP, mounted /boot
nvme0n1p5  276G  LUKS               <- Omarchy root

Before — ls /boot/EFI/BOOT/ → No such file or directory; holding ⌥ shows macOS and Windows only.

After setting ENABLE_LIMINE_FALLBACK=yes and running limine-install --no-efi-register:

/boot/EFI/BOOT/BOOTX64.EFI   372736 bytes
md5 BOOTX64.EFI       18c7ec40ea1a5c0f070a537d6b40a0df
md5 limine_x64.efi    18c7ec40ea1a5c0f070a537d6b40a0df

Holding ⌥ now shows a third volume, and selecting it boots into the Limine menu. limine.conf, the UKI and the NVRAM entries were all byte-identical before and after — limine-update passes --no-efi-register, so nothing touches the firmware variables.

Why the current default is right elsewhere

I am not suggesting flipping it globally. On a PC sharing one ESP between systems, writing \EFI\BOOT\BOOTX64.EFI can overwrite another OS's fallback loader — close to the complaint in #7867. The default is defensible there.

Macs are the case where it is both safe and needed: the installer gives Omarchy its own ESP, so the fallback path on that partition belongs to nobody else, and Apple's picker is the only boot UI most users will ever see.

A gate on Apple DMI would cover it, in the same place the other install/hardware/apple/ fixes live.

Notes

/etc/default/limine is owned by no package, and it carries the machine-specific cryptdevice=UUID=… line, so it is written at install time rather than shipped. I have not traced which part of the installer writes the no.

For what it is worth, limine-install already installs the fallback when the variable is unset and no fallback exists (limine-install:391) — so the explicit no is what suppresses it.

makoni avatar Sep 15 '26 19:09 makoni

This happened for real on a MacBookPro14,3 (Omarchy 4.0.4, Apple EFI 529.140.2.0.0) — similar layout to the one above, but with macOS later deleted and only a long-gone Boot Camp leaving files behind.

After an NVRAM reset (Cmd+Opt+P+R) the Limine entry was gone and, with ENABLE_LIMINE_FALLBACK=no, OMARCHY_EFI had no EFI/BOOT/BOOTX64.EFI. The firmware fell back to Apple's ESP, where Boot Camp's EFI/Boot/bootx64.efi and EFI/Microsoft were still present (removing Windows never deletes them), and booted the Windows Boot Manager recovery screen. The Option picker showed only "Windows".

Recovery needed macOS Internet Recovery (Cmd+Opt+R → Terminal): copy EFI/limine/limine_x64.efi to EFI/BOOT/BOOTX64.EFI on OMARCHY_EFI, rename EFI/Microsoft and EFI/Boot on Apple's ESP, and bless --mount /Volumes/OMARCHY_EFI --setBoot --file /Volumes/OMARCHY_EFI/EFI/limine/limine_x64.efi --shortform. Afterwards we set ENABLE_LIMINE_FALLBACK=yes.

So +1 for defaulting the fallback on Apple hardware — and it may be worth warning when Apple's ESP still carries a Boot Camp EFI/Boot/bootx64.efi, since that is what the firmware picks once the NVRAM entry is gone.

macmsb avatar Oct 10 '26 16:10 macmsb

Traced this in source. The reporter's reading is right, and the no comes from the ISO installer rather than from anything in this repository.

Where it comes from. Omarchy's own drop-in asks for the fallback: etc/limine-entry-tool.d/omarchy-defaults.conf sets ENABLE_LIMINE_FALLBACK=yes, and has since Limine support landed. The ISO's free-space (dual-boot) install path overrides it: configs/airootfs/root/configurator in omacom-io/omarchy-iso writes "enable_fallback": false into the install config for that mode, and _write_limine_defaults in orchestrator/phases_impl.py turns that into ENABLE_LIMINE_FALLBACK=no appended to /etc/default/limine. limine-entry-tool reads /etc/default/limine after every drop-in, so the no wins. Full-disk installs leave the setting alone and keep the fallback. Nothing on quattro today, in install/hardware/apple/ or elsewhere, puts it back on a Mac.

Why the original concern does not apply to this path. That free-space path always creates its own OMARCHY_EFI partition and never adopts an existing ESP (the configurator says so, and leaves a detected Windows ESP untouched), so \EFI\BOOT\BOOTX64.EFI on that partition belongs to Omarchy alone. Turning the fallback on there cannot overwrite Apple's or Windows' loader. The one caveat is that the orchestrator's lower-level pre-mounted interface accepts whatever esp_device it is handed without checking it is dedicated, so a change keyed on the mode alone would also reach a hand-written install config pointing at a shared ESP.

Not reproduced. It needs Apple firmware and an NVRAM reset, which a worker VM cannot stand in for, so this is the mechanism proven in source plus the two reports here, not a reproduction. @macmsb's account, where the firmware fell through to a leftover Boot Camp EFI/Boot/bootx64.efi on Apple's ESP, fits the same mechanism: with no fallback on OMARCHY_EFI there is nothing of Omarchy's for the firmware to find.

No fix opened. The change belongs in omacom-io/omarchy-iso, and whether to enable the fallback for every free-space install or only on Apple hardware (and whether to warn about a stale Boot Camp loader) is a decision about how machines boot, so it is waiting on the maintainer. Existing installs would also need /etc/default/limine edited, since the installer's line outranks any drop-in a hardware step could add. Until then, the workaround in the report — set ENABLE_LIMINE_FALLBACK=yes in /etc/default/limine and run sudo limine-install --no-efi-register — is what restores the boot picker entry.

Reviewed by Claude Opus 5.5, with a second opinion from Codex Medium, which traced the same path independently from the code and added the pre-mounted-interface caveat above. Independence is not guaranteed, as it can read this session's notes.

omarchybot avatar Oct 12 '26 02:10 omarchybot

The installer side already has an open fix: omacom/omarchy-iso#158 sets enable_fallback to true for free-space installs, so new installs would get EFI/BOOT/BOOTX64.EFI on their own ESP.

Its description also shows that the installer stopped sharing an ESP with Windows (it always creates its own now), so the worry in my original report about overwriting another OS's loader doesn't apply to that path, and the fix doesn't need to be Apple-only.

What #158 doesn't cover is existing installs. They still have ENABLE_LIMINE_FALLBACK=no in /etc/default/limine, so they need the manual fix from the report or a migration on this side.

makoni avatar Oct 12 '26 05:10 makoni

Checked both points from @makoni's last comment.

New installs: omacom-io/omarchy-iso#158 covers them. At its head (2f7eaef) it changes the configurator's free-space enable_fallback from false to true and both orchestrator defaults to True, so _write_limine_defaults writes ENABLE_LIMINE_FALLBACK=yes and limine-update puts EFI/BOOT/BOOTX64.EFI on Omarchy's own ESP. It is not Apple-specific, and does not need to be: since ef3b0e4 in omarchy-iso, free-space installs always create their own ESP. It is still open, so no released ISO carries it yet.

Existing installs: nothing on quattro repairs them. No migration, hardware step or other code touches ENABLE_LIMINE_FALLBACK; the only mention is the yes in etc/limine-entry-tool.d/omarchy-defaults.conf, which the no in /etc/default/limine overrides.

A migration that simply flips no to yes would not be safe for every install that carries it. The no was introduced in omarchy-iso de0f013 (2026-05-22) because free-space installs could then share the Windows ESP, and that sharing was only removed eight days later in ef3b0e4 (2026-05-30). Both predate the v4.0.0 release in August, so a released ISO probably never shipped a shared ESP, but development builds from that week did, and nothing in the install records which kind of ESP a machine has. With the setting at yes, limine-install copies Limine over EFI/BOOT/BOOTX64.EFI with cp -f, and its version checks do not recognise a Windows or Apple loader, so on a shared ESP it would replace the other OS's fallback loader on the next limine-update. A migration therefore needs to look at the ESP itself before changing the setting: create the fallback where none exists, and leave the setting alone and say so where one exists that is not Limine's, or where the ESP also holds another OS's directories such as EFI/Microsoft.

No fix pull request is opened. A migration that writes a loader to every affected machine's ESP is a decision about how machines boot, so it waits on the maintainer, alongside omarchy-iso#158. Nothing was run on a worker: this needs Apple firmware and an NVRAM reset, so it rests on reading the source and on the two reports here. Until then, the manual fix in the report (set ENABLE_LIMINE_FALLBACK=yes in /etc/default/limine, then sudo limine-install --no-efi-register) is safe on a Mac installed with its own OMARCHY_EFI partition, as both reports describe.

Reviewed by Claude Opus 5.5, with a second opinion from Codex Medium. It agreed on both points and added that limine-install overwrites the fallback with cp -f and that its version checks do not protect a foreign loader, which is what the guard above rests on. Its independence is not guaranteed, since it can read this session's notes.

omarchybot avatar Oct 12 '26 06:10 omarchybot