Skip to content

uboot-aurora: let the OS set EFI variables at runtime - #1552

Merged
ryanrhughes merged 1 commit into
masterfrom
uboot-aurora-rt-variables
Oct 24, 2026
Merged

ryanrhughes merged 1 commit into
masterfrom
uboot-aurora-rt-variables

Conversation

@maralcbr

@maralcbr maralcbr commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Firmware parity: uboot-aurora was missing asahi-alarm's uefi-enable-SetVariableRT-with-volotile-storage.patch, which uboot-asahi ships. Without it, U-Boot refuses SetVariable at runtime and the kernel mounts efivarfs read-only on Macs, so systemctl reboot --boot-loader-menu, bootctl set-timeout-oneshot and efibootmgr fail where they work on x86. No Omarchy behaviour or UI changes.

 prepare()
   apple_m1_defconfig
   silent console config
+  -e EFI_RT_VOLATILE_STORE      # SetVariable at runtime, in RAM
   olddefconfig
+  require CONFIG_EFI_RT_VOLATILE_STORE=y

The patch's other hunk (EFI_VARIABLE_FILE_STORE default) 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-boot change saves them to U-Boot's variable file at shutdown.

Evidence

On the M2 Max lab Mac (uboot-aurora 2026.07.aurora2-3 built and installed there):

  • Before: /sys/firmware/efi/efivars mounted ro; bootctl set-timeout-oneshot 30 → Read-only file system; no RTStorageVolatile/VarToFile.
    After: efivarfs rw; RTStorageVolatile = ubootefi.var; bootctl set-timeout-oneshot 0 succeeds and appears in VarToFile.
  • With the companion save step, systemctl reboot --boot-loader-menu=0 brought up Limine's menu and held it until Enter. Limine then deleted the one-shot, and U-Boot recorded the deletion in ubootefi.var, so the following boot was quiet again.
  • The quiet menu still opens with a key press during the m1n1 logo, the built-in keyboard included.

Merge Danger

Door: two-way

Revert and reinstall pkgrel 2; update-m1n1 keeps m1n1/boot.bin.old for rollback.

Blast Radius: Macs on uboot-aurora

Every Mac on uboot-aurora gets a new U-Boot in boot.bin on the next update. Cold boot verified on the M2 Max only; uboot-asahi has shipped the same option since 2025.

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
ryanrhughes enabled auto-merge (squash) October 24, 2026 02:03
@greptile-apps

greptile-apps Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge within its stated scope.

Summary

Enables EFI_RT_VOLATILE_STORE in uboot-aurora and bumps pkgrel to 3.

  • Aurora U-Boot lets Linux write EFI variables at runtime.

Reviews (1) · Last reviewed commit: "uboot-aurora: let the OS set EFI variabl..." · Reviewed by Greptile

@ryanrhughes
ryanrhughes merged commit ccde007 into master Oct 24, 2026
8 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: uboot-aurora (aarch64, PR artifact)

  • edge/aarch64: uboot-aurora-2026.07.aurora2-3-aarch64

Commit ccde007 · run

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.
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.

2 participants