Repository navigation
Hardware setup on the first boot of a root built away from its machine - #14515
Merged
Merged
Conversation
Brings back prebuilt-image support split out of omacom#14431 so it gets its own review. An image built away from its machine names its target in a root-owned manifest the detector reads; hardware setup is queued for the machine's first boot, run there by omarchy-provision-hardware, which also makes the machine's own pacman keyring; and the platform setup operations learn they run on an image's first boot. Apple Silicon images built by the omarchy-mac installer need this; an install on the machine itself does not.
This was referenced Oct 8, 2026
Member
Author
|
Folded back into #14431 ( |
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.
Split out of #14431 so it gets its own review, with an installer and package boundary of its own. A root set up on the machine itself needs none of this. A root built away from its machine needs it, such as the one the Asahi installer writes to a Mac.
Stacked on #14431 (base
omabot/pr-13362), so the diff shows only this feature.What it does
/var/lib/omarchy/image/target(format=1,platform=…). While the root is being built rather than booted,omarchy-hw-platformanswers from it and never reads the build host's device tree.omarchy-apply-hardwarequeues every hardware step instead of running it, and armsomarchy-provision-hardware.service.omarchy-provision-hardwareruns the queue, makes the machine's own pacman keyring on generic aarch64 (so no two machines share a master key), rebuilds the initramfs once if a step changed its inputs, and disables itself.setup-boot,setup-system) are told they run on an image's first boot, and user setup waits for first run on the machine.The change is as it was in #14431, minus the
qualcommplatform, which is now its own change (#14516).Dependency for Apple Silicon
Macs are installed through the Asahi installer, which writes a root filesystem built away from the Mac.
omarchy-mac-boot's first-boot service (also re-armed by factory reset) runs that root's queued hardware setup throughomarchy-provision-hardwarebefore owner setup. Without this PR, a Mac installed that way stops at first boot. This needs to land together with #14431 for Mac installs to work on the upstream runtime.Testing
image-deferred-hardware(34 checks),image-target-platform(37),hw-platform,platform-setup,lifecycle-dispatch,pacman-templatesandplatform-packagestests pass in an Arch Linux ARM container. A Mac installed through the Asahi installer from this runtime has not been tested on hardware since the split.