Skip to content

Merge quattro into the landing branch - #239

Merged
emirb merged 435 commits into
f1/00-root-imagefrom
f1/00a-merge-quattro
Oct 23, 2026
Merged

emirb merged 435 commits into
f1/00-root-imagefrom
f1/00a-merge-quattro

Conversation

@emirb

@emirb emirb commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Brings current quattro into the landing branch, so the rest of the series and #216 apply to it again, and makes the root image install the same on aarch64 as on x86_64, which quattro now builds an ISO for.

What quattro brings

36 merges since the last one (#237's input-method selection came with the earlier merge on this branch):

The conflicts

  • configs/grub/grub.cfg, loopback.cfg: quattro's entries, which boot ${live_kernel} with the options the builder fills in, plus this branch's copytoram=n on each, the N1x recovery entry included (test/unit/boot-cmdline-test.sh requires it of every entry that loads the live system). The syslinux entries, which only a PC boots, keep this branch's lines on quattro's linux-omarchy.
  • builder/build-iso.sh: quattro's per-architecture container and $mkarchiso_command, with btrfs-progs for the root image and the [timing] lines; the mirror is still indexed once after the prune, and the expected package count is still the image's packages plus the kernel closure, now printing pacman's reason when it fails. This branch's package checks read quattro's $online_pacman_conf.
  • orchestrator/phases_impl.py: the root image install stays. quattro's _early_bootstrap_packages and _runtime_package_list fed the pacstrap the image replaces and go with it; validate_boot gains quattro's platform boot entry check, and the boot step writes quattro's initramfs module drop-in before the pre-built UKI is deployed, since the first kernel update on the target runs mkinitcpio.

The same install on aarch64

  • The root image's directory is a variable, arch/$(uname -m), in the installer, the live verifier, the prefetch and the builder.
  • The image is built from the architecture's own package list (the image's kernel, no x86_64 microcode), and on aarch64 it also holds archlinuxarm-keyring and the Limine/Snapper stack, which the x86_64 runtime pulls in by dependency.
  • The installer populates archlinuxarm into the target keyring on aarch64, and the signature check in validate_boot waits for that keyring.
  • The image holds the plain default set; on a board with a set of its own the installer adds what that set adds, and the builder writes each platform's expected count.
  • Such a board (the N1x, the Snapdragon laptops) keeps limine-mkinitcpio, which applies its hardware scripts' boot rules, the N1x's panel console and rescue entry among them; any other machine, a generic aarch64 one included, takes the image's UKI.

quattro's aarch64 tests follow the image: test_package_signing.py checks the keyring the installer populates, and test_n1x_platform.py covers the platform delta and the boot choice.

Merge this one with a merge commit like the others.

@emirb emirb closed this Oct 7, 2026
@emirb emirb reopened this Oct 7, 2026
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Install test passed

x86_64 vs quattro aarch64 vs quattro
Result ✅ passed ✅ passed
Build the ISO 453.0 s +276.0 s 458.0 s +248.0 s
Install 29.6 s −41.6 s 19.3 s −97.0 s
First boot 15.0 s +1.7 s 5.8 s −0.5 s
Everyday boot 14.6 s +1.4 s 5.8 s +0.7 s

Boots are loader, kernel and userspace, without the VM's firmware.

Install phases, x86_64
Phase This PR quattro
Preparing live environment 0.2 s 0.2 s
Preparing install target 11.9 s 0 s
Installing Arch + Omarchy 8.3 s 58.2 s
Configuring hibernation 0.3 s 0.2 s
Configuring system 4.8 s 2.2 s
Staging provisioning 0.2 s 0 s
Finalizing boot and user 3.5 s –
Configuring login 0.1 s 0.1 s
Configuring SSH access 0.2 s 0.2 s
Configuring Tailscale 0 s 0 s
Configuring DNS resolver 0 s 0 s
Validating boot setup 0 s 0 s
Creating factory snapshot 0.1 s 0 s
Install phases, aarch64
Phase This PR quattro
Preparing live environment 0.1 s 0.1 s
Preparing install target 2.6 s 0 s
Installing Arch + Omarchy 5.3 s 102.3 s
Configuring hibernation 0 s 0 s
Configuring system 8.7 s 4 s
Staging provisioning 0 s 0 s
Finalizing boot and user 2.1 s –
Configuring login 0 s 0 s
Configuring SSH access 0.2 s 0.2 s
Configuring Tailscale 0 s 0 s
Configuring DNS resolver 0 s 0 s
Validating boot setup 0.1 s 0.1 s
Creating factory snapshot 0.1 s 0.1 s

Run · af1cd98

ryanrhughes and others added 27 commits October 15, 2026 01:47
Build one aarch64 image for every board
Build one aarch64 ISO for every board, the NVIDIA N1x laptops included
omarchy-pkgs#930 put linux-omarchy on master, and the edge aarch64
repository carries it now, with the N1x packages the bundle used to bring.
An aarch64 build no longer needs --package-dir. It stays as a way to put a
kernel under test or pinned packages ahead of the repositories, and a build
without it already drops the [platform] repo.
The image boots linux-omarchy since #258, so its live kernel and initramfs
are vmlinuz-linux-omarchy and initramfs-linux-omarchy.img.
Build the aarch64 image on the linux-omarchy edge publishes
…gh a GICv2m

- test/arm64-container runs a test in the Arch Linux ARM image the ISO is
  built in, with Arch's QEMU 11 instead of the runner's.
- test/arm64-install takes PLATFORM: the live system's detector names that
  platform, and the test checks the installer took its default set (and, for
  aarch64-n1x, that the NVIDIA module is built for the running kernel). It
  also keeps the installer's timings and both boots' systemd-analyze, after a
  reboot into the installed system.
- test/arm64-live-boot counts the installer on the screen as up: linux-omarchy's
  command line names no serial console.
- Both give the guest a GICv2m for its MSIs (msi=gicv2m), not an ITS. Nested
  on Apple silicon the host's GIC has no LPIs, so an ITS's interrupts are lost;
  msi=gicv2m keeps per-queue MSI-X, about 55% more 4K random-read IOPS than
  no MSIs at all (its=off).
A trusted author's pull request builds, installs and boots the ISO on both
architectures. aarch64 runs on Namespace's Apple-backed runner, the ARM one
with KVM: it builds from omarchy's quattro and omarchy-pkgs' master on
linux-omarchy from edge, boots the live ISO to its installer, installs it
unattended and boots the result twice, then installs the same ISO once more
as an N1x. Anyone else gets x86_64 on GitHub's runner, as before.

The comment shows both architectures in one table against quattro, and the
install phases of each. Boot times leave out the VM firmware's share, which
on aarch64 is the runner's uptime.

arm64-iso.yml, which did the aarch64 build and tests on a push to
arm64-generic or by hand, is folded into this workflow; it can be run by hand
the same way.
Install test: build, install and boot aarch64 too
The aarch64 config the build downloads the ISO's packages with had
"SigLevel = Optional TrustAll" on [omarchy], as the other three had before
f6377d2: a package whose .sig was missing went onto the ISO unchecked. It
lived on the n1x branch then and came to quattro with #251.

Without the line, [omarchy] follows the config's own default, Required
DatabaseOptional, which is what an installed aarch64 system uses. Every
package in the edge aarch64 repository has its .sig, and the build adds and
signs the release key before its first download on aarch64 too. [platform]
keeps its line: the bundle is local files, checked against its SHA256SUMS.
…res-aarch64

ISO build: require signatures on Omarchy's own packages on aarch64 too
The omarchy packages install their commands to /usr/bin and link them from
/usr/share/omarchy/bin. A build from published packages extracted that
link, which points outside the extracted files, so an aarch64 build
without --local-source stopped at "cannot stat ... omarchy-hw-platform".
Omarchy's optional package list names the ProArt P14's amplifier
firmware, which only has an aarch64 build.
Leave aarch64-only firmware out of x86_64 offline mirrors
Read the platform detector from usr/bin of a packaged runtime
A third lane, edge-aarch64, beside edge and stable. On the Apple-backed
runner, the ARM one with KVM, it builds the aarch64 ISO from the edge
channel's published packages, boots it to the installer, installs it
unattended and boots the result twice, then installs it again as an N1x:
the install test pull requests get.

Only the ISO is published, with its checksum and its own latest.json:

  https://nightly.omarchy.org/edge-aarch64/latest.json
  https://nightly.omarchy.org/edge-aarch64/<version>/omarchy-edge-<version>-aarch64.iso

No VM image yet: sealing one is x86_64 only. As for the other lanes,
nothing is published unless the install passed, and a failing lane holds
none of the others back. The ARM install test now records the installed
Omarchy package and kernel, which latest.json names.
Nightly: an aarch64 edge ISO, installed and published every night
A manual run now takes a channel. rc builds the ISO the way omarchy-release
builds a release candidate (omarchy-iso-make --rc), so a fresh install of
an rc can be tested before it ships; edge builds with --edge. Pull requests
and pushes to quattro are unchanged and build from stable.

An rc run is x86_64 only: no channel but edge serves aarch64. Runs on
different channels no longer cancel each other, and the summary names the
channel it built from.
Bumps the actions group with 1 update: [mitchellh/vouch/action/check-user](https://github.com/mitchellh/vouch).


Updates `mitchellh/vouch/action/check-user` from f23dbb5e745334f97414ec70463ce7301071a661 to d66fa29a64600490892131ad87597c30c91fcac4
- [Release notes](https://github.com/mitchellh/vouch/releases)
- [Commits](mitchellh/vouch@f23dbb5...d66fa29)

---
updated-dependencies:
- dependency-name: mitchellh/vouch/action/check-user
  dependency-version: d66fa29a64600490892131ad87597c30c91fcac4
  dependency-type: direct:production
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Install test: build from the rc or edge channel when run by hand
rc now publishes omarchy for aarch64 (4.0.5rc1-1), so an rc run no longer
has to drop aarch64. omarchy-iso-make and build-iso.sh accept --rc with
--arch aarch64 and point [omarchy] at pkgs.omarchy.org/rc; Arch Linux ARM
still comes from the same mirror. A manual install test with channel=rc
builds both architectures, aarch64 from the channel rather than from
quattro's source.
omarchy-update wraps itself in script(1), so up to 4.0.x the orphan and
reboot questions see a terminal despite -y and wait until the timeout.
Starting it as already logged leaves them no terminal to ask on.
emirb added 29 commits October 23, 2026 10:53
fix(installer): resolve race condition and fs detection failure when mounting ESP
Every aarch64 install from the root image stopped within a minute. The
per-machine keyring unit runs pacman-key --init and --populate on
/mnt/etc/pacman.d/gnupg in the background until validate_boot joins it,
but on aarch64 omarchy-apply-system's post-install/pacman.sh runs its
own pacman-key --init and --populate on the same directory in the
meantime. Whichever pacman-key loses the race fails: the chroot one
with "You do not have sufficient permissions to read the pacman
keyring", or the unit with "could not be locally signed". Run in
parallel on one gnupg dir, the two sequences failed 5 times out of 12.
Run one after the other, they never failed.

Join the unit before omarchy-apply-system starts on aarch64. x86_64's
post-install never touches the keyring, so there the unit keeps running
alongside the finalizer and the install loses none of its overlap.

test_package_signing.py checks that the unit has finished when the
finalizer starts on aarch64, and that it is still running on x86_64.
The aarch64 install test spots a stopped installer by reading "Omarchy
installation stopped" or "exited with status" on its screen. A long
error pushes both lines off the top. The test then waited the full 1500
s on a dead install, and the run ended as "no installed system on SSH"
instead of showing the error.

The live shell's prompt stays at the bottom, and it starts with the
installer's non-zero exit status ("1 root@..."). Match that too.

Checked with tesseract against CI screenshots. The scrolled stop screen
(the 56 s shot of run 39890333593) was missed before this change and is
caught now. The stop screen with the heading visible is still caught.
All 22 shots of a passing install (run 39876766041) still read as
running.
The kernel unpacks the live initramfs into its rootfs tmpfs, which it
mounts with half of RAM. Since the live ISO boots linux-omarchy, that
initramfs unpacks to 148,874,056 bytes, more than the 146,396 KiB a
512 MB machine gets: the kernel logs "Initramfs unpacking failed:
write error", /tmp/cmdline stays empty, archiso mounts '' as its
medium and drops to a rescue shell behind the splash. The live-lowmem
scenario fails on it.

initramfs_options= sets the rootfs mount options (upstream commit
278033a225e1, in 6.18 and the 6.17, 6.6 and 5.15 stable trees; 90% is
the size the patch's reviewer suggested for this mount). Every live
entry now passes initramfs_options=size=90%. The F1 ISO's own kernel
and initramfs at 512 MB under OVMF: without it, the unpack fails;
with it, the installer's greeter appears.

boot-cmdline-test.sh checks every live entry for it, beside
copytoram=n.
configs/airootfs/root/configurator: quattro's #111 types the ESP
mounts as this stack already does; quattro's comment on the free-space
mount is kept, so the line matches quattro.
efibootmgr prints the boot list after BootOrder and BootNext writes.
Those two calls decoded it as strict UTF-8, so firmware with a legacy
entry carrying other bytes (test_command_capture.py has a real
machine's) raised UnicodeDecodeError and stopped the install before
the removable loader was written: the failure capture() was made to
prevent. Both now go through capture(), and the create decodes its
stderr with errors="replace" too.

test_raw_bytes_in_the_firmware_listing_do_not_stop_the_install fails
with that UnicodeDecodeError before this change.
The boot-time mirror check hashed the shipped packages and the repo db,
but not their signatures. On aarch64 the shipped mirror keeps
archlinuxarm-keyring's signature on purpose: _validate_package_signing
verifies the target keyring against it in validate_boot. A damaged
signature therefore passed the check that runs before anything formats
a disk, and the install then stopped at its very end, after the image
was written, blaming the keyring.

List each shipped package's signature next to it, where it has one.
That is the whole shipped mirror apart from offline.files, which no
install reads. On the 2026-10-23 x86_64 rc build that adds 122 files
and 32,095 bytes to the 1,427,258,733 the check already reads.

aarch64-build-test.sh now runs the builder's own checksum list over a
shipped mirror and damages the keyring's signature: before this change
the mirror check still passed.
The warm-up waited while omarchy-root-image-verify.service was
activating. Since the mirror check is ordered Before= the image check,
the image's start job sits queued for the whole mirror hash, and
systemd reports a unit with a queued job as inactive. A login during
the mirror check therefore saw "inactive", skipped the wait, and cat
read the root image off the USB stick against the mirror hash, the
two-reader seeking the wait exists to prevent.

Wait instead until neither unit has a start job: a oneshot's job stays
in the queue while it is waiting and while it runs, and leaves it when
the unit has finished, whether it passed or failed.

warm-offline-mirror-test.sh runs warm_offline_mirror against a systemd
stub that replays the boot (mirror hashing with the image queued, then
the image hashing, then neither). Before this change both reads landed
during the mirror hash; now they land after both checks.
@emirb
emirb merged commit af1cd98 into f1/00-root-image Oct 23, 2026
6 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.

5 participants