Repository navigation
Migration engine with the quattro-upstream tester transition - #559
Merged
Merged
Conversation
…gration-engine # Conflicts: # test/shell.d/lifecycle-dispatch-test.sh
…ume every step from any kill
…gration-engine # Conflicts: # bin/omarchy-lifecycle-dispatch # docs/lifecycle-dispatch.md # test/shell.d/lifecycle-dispatch-test.sh
…it against the rehearsed databases
This was referenced Sep 25, 2026
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.
Ticket 42: the migration engine and the quattro-upstream tester adapter.
omarchy-mac-migratein omarchy-mac-boot runs ten journaled steps: preflight, backup, keyring, prefetch, repositories, transaction, boot-chain, loader, reboot, retire. Each step's start and end are synced to/var/lib/omarchy-mac/migration/journal, and a run picks up at the first unfinished step. Preflight refuses unsupported states (mx-mac and legacy cohorts until 43 to 45, busyboxencrypt, untrusted repositories, an unfinished first boot, incoherent boot files, low battery or space, an unverifiable set) before anything changes, then freezes the plan./etc,/boot, the ESP and the LUKS header, with digests. Keyring bootstrap by pinned fingerprint. The whole signed set is downloaded and verified, then the transaction is rehearsed with--dbonlyso only allowed packages can be removed. The repository switch puts[omarchy]first and drops[omarchy-aarch64], TrustAll and the fork keys. Boot files are rebuilt and checked before Limine takes the loader slot, and a oneshot verifies Aurora through Limine after the reboot.type=candidate-setuses the signed test set: it is copied, verified against a pinned fingerprint, and served to pacman only through a temporary local repository.type=repositorypoints at an omacom channel for stable later.migrations/1790347292.sh, which dispatches a new optionalmigrateoperation.Ordering rule (also in ticket 53): the migration marks itself done the first time it runs, and with no target it does nothing. So the build that first carries it to users must also ship its target.
Tested:
boot/test/mac-migrate-test.sh, 27 groups.kill -9after, during and in the middle of every step, including pacman killed after its database write and the Limine switch cut short. Plus drift from anomarchy updatebetween rehearsal and transaction, preflight refusals leaving the system byte-identical, and GRUB and Limine testers.boot/test/all: 172 ok. Dispatch, platform-migration, rekey and bin-style suites pass. shellcheck is clean.omarchy4.0.2-2 went to the lower candidate073e489b5b85set,linux-asahi/m1n1to Aurora, TrustAll was removed, and the run was resumed after akill -9mid-download. Boot hardware was shimmed. In the first attempt, the container's m1n1 hook rewrote the M1 Pro'sm1n1/boot.bin; it was restored byte for byte before any reboot, and the harness now disables that hook.Hardware still owed: an in-place tester run on a real Mac. The M1 Pro is mx-mac (ticket 43), and the M2 was left alone.
Second review: two independent reviews. Every verified finding is fixed: rehearse again when packages change, compare removals against the rehearsal's start, clear a stale lock only when no process holds it, resume the Limine switch from the frozen plan, enable the verify unit on every run, copy then verify the set, never arm first boot, and write the completion record before cleanup. A Fable re-review confirmed all ten fixes. It found two more gaps, both now fixed: a killed transaction's hooks could be skipped after a new rehearsal, and the transaction ran against sync databases a later sync had replaced. The post-reboot check uses the boot check's
--boot-chainmode, as update-verify does.