Repository navigation
Migrate mx-mac Macs in place (ticket 43) - #571
Merged
Merged
Conversation
…rk's updaters The mx-mac adapter names the Mac packages from the target and moves every fork build an official repository carries to that build in one transaction, drops [omarchy-aurora], the fork's [omarchy] and its keys, and moves the bundle and channel updaters' records into the backup. The engine now removes a signature left beside a replaced database, which pacman would reject, and goes back to rehearse when pacman.conf or a retired key comes back before the transaction.
The official repositories carry mise and the .NET host and runtime only as their -bin builds, which conflict with the fork's, so an mx-mac Mac would otherwise keep fork builds nothing updates.
… coming back Review fixes: the adapter names the target's packages (the Mac packages, and any the Mac has or that replace a fork build) instead of a fixed list, refuses a target without the runtime pair, allows omarchy-settings-asahi's removal as the tester does, and the restart message says what changed. Tests cover a fork key trusted again on its own, the bundle's pending release record, and a target package the Mac never had.
…isses by name The mx-mac adapter refuses a target without the runtime pair in preflight and lists the fork builds replaced under another name as planned removals, so a fork dotnet-runtime that dotnet-runtime-bin's versioned conflict does not catch is removed after the install instead of staying beside it.
pacman -Q NAME answers with a package that provides NAME, so a fork build its official counterpart replaced (mise, by mise-bin) was still listed and pacman -R refused it, failing the rehearsal. Found on the M1 Pro run; the fake pacman now answers -Q through provides as pacman does.
omacom edge carries quickshell-git itself, so naming quickshell for the fork's quickshell-git lost to the upgrade of quickshell-git and left a removal that broke omarchy's dependency. Found on the M1 Pro run.
omacom edge carries an omarchy-dev of its own, so the engine's cohort guess by package name could take an official dev-channel Mac for mx-mac. The adapter now requires the fork's updaters or their records.
…talled omacom's own omarchy-dev provides omarchy. Once it is newer than the frozen fork's, -Su would take it and pacman would drop the omarchy target it conflicts with, as it dropped quickshell for quickshell-git on the M1 Pro. The planned removals are ignored in the resolve, download, rehearsal and transaction, and the rehearsal must end with every target installed. The fake pacman now drops a target that conflicts with a package providing it, as pacman does.
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 43: the mx-mac cohort adapter for
omarchy-mac-migrate, verified by migrating the M1 Pro in place.What changed
lib/migrate-mx-mac.sh: an mx-mac Mac (the fork'somarchy-devpair, told by its updaters or their records) takes the Mac packages and every target package it has from the target in one transaction. Every other fork build (bundle packages, anything installed at the version the fork's[omarchy]or[omarchy-aurora]lists) moves to the official build of its own name, else to its renamed counterpart (omarchy-dev→omarchy,quickshell-git→quickshell,mise/.NET →-bin), removed by name after the install where the counterpart's conflict misses it. What nothing official carries is kept and listed. The switch drops[omarchy-aurora]and the fork's[omarchy]and deletes the fork's package and release keys. Retire moves the bundle and channel updaters' records into the backup..db.sigbeside a replaced database is removed. pacman rejects the officialomarchy.dbbeside the fork's signature.pacman.confor a retired key comes back after the switch (the fork's ownomarchy update).pacman -Qresolves provides).--ignore) in resolve, download, rehearsal and transaction. Once omacom'somarchy-dev(which providesomarchy) is newer than the frozen fork's, pacman would otherwise drop theomarchytarget. The rehearsal must also end with every target installed.omarchy-devowns five commandsomarchy-mac-bootships, so the package cannot be installed on its own on an mx-mac Mac.Tests
test/mac-migrate-mx-test.shcovers:pacman.confor a fork key between steps.-Qthrough provides, honours--ignoreand drops a target that conflicts with a package providing it. Each fix was checked to fail its test when reverted.check()passed at the M1 build.M1 Pro run (mx-mac → candidate set, in place)
apple-test-43-2060cf8ce1ef-20260926: Signed test candidate set for quattro-upstream 99ace4070 #555's set withomarchy-mac-boot20260926-1.45 built from 2060cf8. It was signed only with the local test-lane key and never published.pre-migrationsnapshot;/boot, ESP and LUKS header copied off the Mac; boot check passed.pacman -U --overwriteon the five shared paths.quickshell-git.repositories done./etc/default/limine, fstab and snapper config unchanged. Snapshots kept.--ignoreof planned removals and the installed-targets check). None changes the steps the M1 ran; the ignore matters only once omacom'somarchy-devoutversions the fork's.Follow-ups (not here)
1788200000journal guard. Don't runomarchy updatethere until a runtime with it is installed.omarchy-dev) is refused rather than skipped, which keeps its upstream migration pending. Decide before activation.Second review: three rounds; every verified finding fixed (the last one, omacom's
omarchy-dev, in 51b2f9f).