Skip to content

Skip packaged boot verification for owner-managed chains - #158

Merged
scottjones merged 2 commits into
omacom:mainfrom
satchlj:fix/owner-boot-chain-verify
Nov 18, 2026
Merged

scottjones merged 2 commits into
omacom:mainfrom
satchlj:fix/owner-boot-chain-verify

Conversation

@satchlj

@satchlj satchlj commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Claude Fable 5.2 on @satchlj's behalf.

Summary

Check /etc/omarchy-mac-boot/owner-boot-chain before running the packaged boot checker. If present, print one line explaining that verification is skipped and leave the boot chain to its owner. Preserve the existing rollback-marker cleanup without rebuilding boot files.

On rubra, custom kernel package names such as linux-aurora-ppt-* make the checker report that neither linux-aurora nor linux-asahi is installed, before update-verify acknowledges the owner's explicit marker. The marker-first path addresses this without broadening the checker's assumptions about which boot files custom packages produce.

Without the owner marker, packaged boot-chain verification and failure enforcement continue. Snapshot-restore verification remains independent. Update the package fixtures, runtime integration tests and manual for the new behavior. Empty markers retain the existing presence-based meaning.

Validation

All execution was on alba (M4 Mac mini), in its aarch64 Ubuntu 24.04 Lima VM neo-build, using temporary fixture roots:

  • Targeted omarchy-mac-boot/test/update-verify-test.sh passed: owner-managed healthy/missing-UKI/unsupported-kernel cases, exactly one output line, a checker stub that must never execute, no-marker failures, and rollback cleanup/rebuild cases.
  • test/integration/all passed with OMARCHY_TEST_RUNTIME pointing to the repository-pinned Omarchy runtime commit 81fd2d23ca6e3462183a4dc8360de3113fa8d80c.
  • ShellCheck on the entrypoint, Bash syntax checks on the changed shell tests and git diff --check passed. Plain ShellCheck on the test scripts also reports existing fixture-variable/source-following and conditional-style findings; this is not a claim of a clean test-script ShellCheck run.
  • Ran omarchy-mac-boot/test/all. The VM's dtc 1.7.0 initially failed the minimum-version prerequisite; built dtc v1.7.2 locally and reran. After removing macOS AppleDouble transfer artifacts, the suite reaches update-m1n1-locale-test.sh and fails without the defaults file, update-m1n1 follows the caller's collation. Running that test against unchanged main (63a6941c698e75213e219205c656c83850c951e8) produces the same failure. The full suite is therefore not green in this VM. The changed update-verify test, which sorts after that failure, was run separately and passed. Disposable initramfs/block-device cases were not enabled.

No native Arch package build, installation, live update, hardware operation, reboot or cold-boot qualification was performed. The only rubra access was read-only pacman -Qi omarchy-mac-boot, confirming this repository as its declared source. Rubra has an older local build; this branch targets current main. CI and normal release qualification remain necessary.

The source package is versioned by the date of the commit pinned in its recipe, with no source version file to bump. Delivery requires the normal omarchy-pkgs recipe-pin release after review. No release command or deployment was run.

Merge Danger

Door: two-way; reverting restores advisory checks on owner-managed chains.

Blast radius: updates on Macs with the explicit owner marker. These already let the update finish after a failed check; they now skip that check and say so once. Macs without the marker remain checked. Snapshot restores do not consume this marker.

🤖 Generated with Claude Code

Signed-off-by: Satya Benson <satya@benson.earth>

@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, marker-first fixes the noisy custom-kernel output, and Macs without the marker are still enforced.

One concern: #29 kept the checker running so that a marker left behind after going back to the packaged kernel and m1n1 could not hide a real failure. With this change, that Mac prints only the skip line and offers a reboot even with a missing UKI.

Could you keep the marker check first but still run the checker quietly, and if it fails add one line like "The packaged check would fail: . Remove the file to have updates verify again."? The update still finishes.

Small one: the manual still asks owners to name the chain, but nothing reads it now.

Run the packaged checker quietly after the owner-marker notice. Report the first failure reason so a marker left behind after a return to packaged boot files still exposes a broken chain.
@satchlj

satchlj commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

GPT-6.2 Sol on @satchlj's behalf.

The marker is still checked first. With it present, the packaged checker runs quietly and a failure adds one line with the first reason while the update still finishes. Removing the marker restores enforcement. The manual now says to create an empty marker.

Both targeted tests, the boot-package suite, and the full integration suite passed locally. I also ran CI's ShellCheck command, the scope and architecture gates, the fixture-drift check, and the manual build. The fixture-drift check warned about two upstream drop-ins.

@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, this is what I was hoping for. With the marker present the packaged check still runs quietly and a failure prints its first reason with the remove-the-file hint, while the update finishes. The manual now asks for an empty marker. Approving.

@scottjones
scottjones merged commit 9169c62 into omacom:main Nov 18, 2026
5 checks passed
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