Skip to content

Accept aura as the Aurora boot provider - #52

Merged
scottjones merged 1 commit into
omacom:mainfrom
tko76:fix/aura-boot-provider
Oct 23, 2026
Merged

scottjones merged 1 commit into
omacom:mainfrom
tko76:fix/aura-boot-provider

Conversation

@tko76

@tko76 tko76 commented Oct 21, 2026

Copy link
Copy Markdown

Summary

  • accept aura as the current linux-aurora bootloader provider while retaining support for legacy m1n1-aurora installs
  • require exactly one matching provider so conflicting or missing bootloader packages still fail closed
  • exercise automatic and explicitly named kernel checks for aura, plus the dual-provider rejection path

Problem

Current public Mac images install aura. Its package provides and conflicts with m1n1-aurora, and owns /usr/lib/asahi-boot/m1n1.bin, but pacman -Qq reports its exact package name as aura.

omarchy-apple-silicon-boot-check intentionally compares exact installed package names. It currently maps linux-aurora only to m1n1-aurora, so a fresh official installation fails update-verify with:

Apple Silicon boot check: linux-aurora boots with m1n1-aurora, but m1n1-aurora is not installed

The boot artifacts can be valid even though the exact-name check rejects the provider shipped in the image.

Safety

This does not weaken the later package-mtree, ownership, kernel, initramfs, device-tree, ESP, m1n1, U-Boot, or Limine checks. It selects the one installed supported provider and passes that exact package name into the existing verification. Zero or multiple matching providers remain fatal.

Testing

  • added passing checks for an aura-based linux-aurora installation, both auto-detected and explicitly named
  • retained coverage for legacy m1n1-aurora
  • added a failure case when both supported providers appear installed
  • updated the missing-provider expectation
  • git diff --cached --check
  • Bash syntax checks for the changed script and test
  • two independent pre-commit reviews found no logic or security defects

The full package suite requires the repository's Linux/Bash 5 CI environment and will run on this pull request.

@claytonfaria

Copy link
Copy Markdown

Hardware confirmation from a fresh official edge installation on MacBookAir10,1 / J313 on 2026-10-22:

  • linux-aurora 7.2.10.aurora2-1 (7.2.10-2-1-ARCH)
  • aura 0.1.0.r20261022-1
  • omarchy-mac-boot 20261021-1

omarchy update completed the package step (there is nothing to do) but failed at final boot verification with exactly this PR's missing-m1n1-aurora error. Rebooting itself worked.

A small local equivalent change selecting the installed aura package made the complete omarchy-apple-silicon-boot-check --boot-chain succeed, including the package-file, kernel/initramfs, device-tree, ESP and composed stage-two-image checks. It passed again after reboot. This is hardware evidence for accepting Aura; I have not installed this PR's exact commit or rerun the full omarchy update command after the change.

This PR's explicit exactly-one-provider selection is stronger than our initial local patch: it also rejects ambiguity in --boot-chain mode. It would be useful to add that mode to the dual-provider regression test (the new rejection currently appears to be exercised only by the default invocation).

I checked the PR's current CI: all four listed checks passed. Thanks for covering the provider transition without weakening the artifact checks.

@scottjones scottjones left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, and welcome! It's a real bug and a clean fix. Approving.

The bug is live on current images. The 10-20 edge image (ba06efa1974e-4a05573a4503) ships aura 0.1.0.r20261014-2 and no m1n1-aurora, and its omarchy-mac-boot (1e4c6e2) maps linux-aurora only to m1n1-aurora. Since update-verify runs boot-check --boot-chain, every omarchy update on those installs ends "not finished".

One more impact the description doesn't mention: snapshot restores are refused too. omarchy-mac-snapshot-check:281 runs the same --boot-chain check before a Limine restore, and owner-boot-chain doesn't apply there (mac-manual 03-updates.md:44), so there's no way to opt out.

What we checked:

  • It fails closed. Zero providers or two providers both fail.
  • The chosen exact name is what goes into the pacman -Qkk, pacman -Qlq and m1n1.bin ownership checks.
  • aura and m1n1-aurora ship the same /usr/lib/asahi-boot/m1n1.bin, so the renamed fixture is a fair test.
  • An unrelated package named aura can't pass. It either trips the two-provider check or fails m1n1.bin ownership.
  • The new tests fail with the fix reverted.

Nits, not blocking:

  • The aura cases only run in full mode, not --boot-chain. We tried that case locally and it passes, so this is just coverage.
  • There's no test for linux-asahi with an aura rival.

For later, not this PR: a few places still hard-code m1n1-aurora or uboot-asahi: omarchy-mac-snapshot-check:157 (boot_packages, only affects the refusal message), tools/release/mac-release:70, tools/release/mac-aurora-pin:424, tools/package-resolution/platforms/aarch64-apple/platform and tools/hardware/mac-check:73.

@scottjones
scottjones merged commit d80d76f into omacom:main Oct 23, 2026
4 checks passed
ryanrhughes pushed a commit to omacom/omarchy-pkgs that referenced this pull request Oct 23, 2026
Picks up omacom/omarchy-mac-pkgs#52, which accepts aura as the linux-aurora
bootloader provider. Current Mac images ship aura instead of m1n1-aurora, so
the boot check failed every omarchy update and snapshot restore.
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.

3 participants