Repository navigation
uboot-aurora: let the OS set EFI variables at runtime - #1552
Merged
Merged
Conversation
uboot-aurora left out asahi-alarm's SetVariableRT volatile-storage patch, so efivarfs is read-only on Macs that boot it. systemctl reboot --boot-loader-menu, behind System > Reboot to Boot Menu, then fails, and with the quiet Limine menu a key press in the timeout is the only way to reach snapshots or other kernels. Enable EFI_RT_VOLATILE_STORE, the one option the patch still changes (the file store is already the default), and fail the build if it drops out.
ryanrhughes
enabled auto-merge (squash)
October 24, 2026 02:03
[Medium impact] This PR appears safe to merge within its stated scope. SummaryEnables
Reviews (1) · Last reviewed commit: "uboot-aurora: let the OS set EFI variabl..." · Reviewed by Greptile |
Contributor
This was referenced Oct 24, 2026
Merged
ryanrhughes
pushed a commit
that referenced
this pull request
Oct 24, 2026
Picks up omacom/omarchy-mac-pkgs#59. A Mac now saves the EFI variables set while it ran to U-Boot's variable file at shutdown, so systemctl reboot --boot-loader-menu, bootctl and efibootmgr changes reach the next boot as on x86 (with uboot-aurora's runtime store, #1552). Limine keeps Omarchy's template timeout and quiet mode instead of the Mac's 3 s. The scriptlet starts omarchy-mac-efi-vars.service on install and upgrade, since multi-user.target pulls it in only from the next boot, and on upgrade gives a menu still carrying the Mac's timeout: 3 the template's timeout and quiet line, since activation does not run again.
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.
Summary
Firmware parity:
uboot-aurorawas missing asahi-alarm'suefi-enable-SetVariableRT-with-volotile-storage.patch, whichuboot-asahiships. Without it, U-Boot refuses SetVariable at runtime and the kernel mounts efivarfs read-only on Macs, sosystemctl reboot --boot-loader-menu,bootctl set-timeout-oneshotandefibootmgrfail where they work on x86. No Omarchy behaviour or UI changes.The patch's other hunk (
EFI_VARIABLE_FILE_STOREdefault) is already upstream's default in Aurora's tree, so one config line covers it. pkgrel 2 → 3.U-Boot keeps these runtime writes in RAM. The companion
omarchy-mac-bootchange saves them to U-Boot's variable file at shutdown.Evidence
On the M2 Max lab Mac (
uboot-aurora 2026.07.aurora2-3built and installed there):/sys/firmware/efi/efivarsmountedro;bootctl set-timeout-oneshot 30→Read-only file system; noRTStorageVolatile/VarToFile.After: efivarfs
rw;RTStorageVolatile=ubootefi.var;bootctl set-timeout-oneshot 0succeeds and appears inVarToFile.systemctl reboot --boot-loader-menu=0brought up Limine's menu and held it until Enter. Limine then deleted the one-shot, and U-Boot recorded the deletion inubootefi.var, so the following boot was quiet again.Merge Danger
Door: two-way
Revert and reinstall pkgrel 2;
update-m1n1keepsm1n1/boot.bin.oldfor rollback.Blast Radius: Macs on uboot-aurora
Every Mac on
uboot-auroragets a new U-Boot inboot.binon the next update. Cold boot verified on the M2 Max only; uboot-asahi has shipped the same option since 2025.