Repository navigation
Merge quattro into the landing branch - #239
Merged
Merged
Conversation
Install test passed
Boots are loader, kernel and userspace, without the VM's firmware. Install phases, x86_64
Install phases, aarch64
|
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.
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.
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.
Brings current
quattrointo 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, whichquattronow builds an ISO for.What
quattrobrings36 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'scopytoram=non each, the N1x recovery entry included (test/unit/boot-cmdline-test.shrequires it of every entry that loads the live system). The syslinux entries, which only a PC boots, keep this branch's lines onquattro's linux-omarchy.builder/build-iso.sh:quattro's per-architecture container and$mkarchiso_command, withbtrfs-progsfor 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 readquattro's$online_pacman_conf.orchestrator/phases_impl.py: the root image install stays.quattro's_early_bootstrap_packagesand_runtime_package_listfed the pacstrap the image replaces and go with it;validate_bootgainsquattro's platform boot entry check, and the boot step writesquattro'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
arch/$(uname -m), in the installer, the live verifier, the prefetch and the builder.archlinuxarm-keyringand the Limine/Snapper stack, which the x86_64 runtime pulls in by dependency.archlinuxarminto the target keyring on aarch64, and the signature check invalidate_bootwaits for that keyring.quattro's aarch64 tests follow the image:test_package_signing.pychecks the keyring the installer populates, andtest_n1x_platform.pycovers the platform delta and the boot choice.Merge this one with a merge commit like the others.