Skip to content

Hardware setup on the first boot of a root built away from its machine - #14515

Merged
maralcbr merged 1 commit into
omabot/pr-13362from
image-deferred-hardware
Oct 8, 2026
Merged

maralcbr merged 1 commit into
omabot/pr-13362from
image-deferred-hardware

Conversation

@maralcbr

@maralcbr maralcbr commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

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

  • An image builder writes a root-owned manifest, /var/lib/omarchy/image/target (format=1, platform=…). While the root is being built rather than booted, omarchy-hw-platform answers from it and never reads the build host's device tree.
  • omarchy-apply-hardware queues every hardware step instead of running it, and arms omarchy-provision-hardware.service.
  • On the machine's first boot, omarchy-provision-hardware runs 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.
  • The platform setup operations (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 qualcomm platform, 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 through omarchy-provision-hardware before 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-templates and platform-packages tests 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.

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.
@maralcbr maralcbr changed the title Prebuilt-image hardware setup on the machine's first boot Hardware setup on the first boot of a root built away from its machine Oct 8, 2026
@maralcbr
maralcbr merged commit 69368db into omacom:omabot/pr-13362 Oct 8, 2026
@maralcbr

maralcbr commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

Folded back into #14431 (69368dbdb is now on its branch). Macs install through the Asahi installer, whose root is built away from the Mac, so this is part of the minimum Apple Silicon support rather than a separate feature.

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.

1 participant