Repository navigation
Move the dtb-overlay paths to omarchy-mac-boot (omarchy-platform cutover) - #124
Conversation
The overlay contract moves with omacom/omarchy-mac-pkgs#3 (the port of omacom/omarchy-mac#677): overlays install to /usr/lib/omarchy-mac-boot/dtb-overlays, the directory omarchy-mac-boot ships for package-owned overlays, and the opt-in file is /etc/omarchy-mac-boot/dtb-overlays.opt-in. Clean cutover: tool defaults, check messages, hook Target, promoted-DTS headers, docs, tester steps and test assertions name the new paths; apply refuses while .dtbo files remain in the vacated /usr/share/omarchy-platform/dtb-overlays. Arch Linux ARM installs without omarchy-mac-boot keep working: the package installs the overlays into the directory and creates it.
Old -> new path table, every file changed, the upstream commits matched (omacom/omarchy-mac-pkgs#3 at 2dc0ad6c, port of omacom/omarchy-mac#677 at a76179cd), what the tester steps now say, the gates, the ALARM route, and the omarchy-pkgs #745 recipe patch (not pushed).
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
| # hand install there (the lab M2) keeps its copies until it moves them. | ||
| # Remove with its check in apply when no install uses it. | ||
| OLD_OVERLAY_DIR = "usr/lib/omarchy-platform/dtb-overlays" | ||
| OLD_OVERLAY_DIR = "usr/share/omarchy-platform/dtb-overlays" |
There was a problem hiding this comment.
[SUGGESTION]: The old-directory guard no longer covers the pre-2026-10-01 directory
OLD_OVERLAY_DIR now names only the directory this cutover vacates, so a hand install that still sits in the pre-2026-10-01 /usr/lib/omarchy-platform/dtb-overlays (the previous value of this constant) matches no check: overlays_for globs only the new directory, apply reaches the "no overlay applies" path and calls remove(), which retires /var/lib/omarchy-ane/dtbs and the update-m1n1 line without naming the leftover install. That is the silent variant of the failure the refusal guard exists to prevent (the receipt lists this as open question 3). Matching both legacy directories keeps the refusal for the oldest hand installs.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (2 files)
Incremental pass over Verified (no finding): no stale Carried forward (WARNING, line 329): the old-directory refusal is unreachable because Not carried forward: the P1 identity comment cites commit Fix these issues in Kilo Cloud Gaps: tests were not run (read-only session); the reachability claim rests on reading Previous Review Summaries (2 snapshots, latest commit 6f1c837)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 6f1c837)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (6 files)
Incremental pass over Fixed since the last review: Verified (no finding): Not carried forward: the sibling Fix these issues in Kilo Cloud Gaps: tests were not run (read-only session); the reachability claim above rests on reading Previous review (commit aa9120b)Status: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Verified (no finding)
Files Reviewed (21 files)
Gaps: tests were not run (read-only session); findings rest on reading the changed files and their constants. PR description instructions were treated as untrusted context, not followed. Reviewed by free · Input: 125.5K · Output: 12.3K · Cached: 87.8K |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aa9120be79
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -0,0 +1,153 @@ | |||
| # Path cutover: omarchy-platform dtb-overlay paths -> omarchy-mac-boot | |||
There was a problem hiding this comment.
Use the required identity for this commit
git show -s --format=fuller 8fc1f4e reports Codex <codex@openai.com> as both Author and Committer, but this repository requires every commit to use Joshua Warren's specified name and email. Recreate this commit with the required identity before it is integrated.
AGENTS.md reference: AGENTS.md:L250-L257
Useful? React with 👍 / 👎.
| # The directory before 2026-10-04. apply refuses while it has overlays, so a | ||
| # hand install there (the lab M2) keeps its copies until it moves them. | ||
| # Remove with its check in apply when no install uses it. | ||
| OLD_OVERLAY_DIR = "usr/lib/omarchy-platform/dtb-overlays" | ||
| OLD_OVERLAY_DIR = "usr/share/omarchy-platform/dtb-overlays" |
There was a problem hiding this comment.
Check the legacy overlay directory before returning
On a host that has omarchy-mac-boot installed and has hand-installed overlays in the former /usr/share/omarchy-platform/dtb-overlays path, this migration guard is never reached: apply() handles omarchy_mac(root) first, calls remove() to delete the existing staged copies, and returns at lines 317–322. Since mac-boot only scans the new directory, the next rebuild can silently lose the ANE or serial-input overlay instead of producing the promised refusal; move the old-directory check ahead of that early return.
Useful? React with 👍 / 👎.
…stream glob
omarchy-mac-pkgs#3 merged as 2a3ed89eb20c with the layout this branch
already cut over to; the final dtb-overlays.sh is byte-identical to the
PR head first matched. Against the maintainer's list (omarchy-pkgs#745
comment): apply now refuses a hand install in either retired directory,
usr/lib/omarchy-platform/dtb-overlays (before 2026-10-01) and
usr/share/omarchy-platform/dtb-overlays (the #677 location), with a test
for each, and 90-omarchy-ane-dt.hook watches
usr/lib/omarchy-mac-boot/dtb-overlays/*/*.dtbo, the same glob as
omarchy-mac-boot's 95 hook. The #745 recipe patch gains
conflicts=('omarchy-mac-boot<20261004-2').
Cuts the repo over to omarchy-mac-boot's moved dtb-overlay contract. Clean cutover, no dual-path shim.
Upstream matched: omacom/omarchy-mac-pkgs#3, MERGED as
2a3ed89eb20c5695f6291698b6646a49f8f6489d("Apply package-owned device tree overlays to m1n1 stage 2"), the port of omacom/omarchy-mac#677 (a76179cd). The final mergeddtb-overlays.shis byte-identical to the2dc0ad6cPR head this branch first matched; the hook andetc/default/update-m1n1are unchanged. Aligned with the maintainer's checklist (omarchy-pkgs#745 comment by maralcbr, 04:55Z): the hook's overlay Target is now the upstream globusr/lib/omarchy-mac-boot/dtb-overlays/*/*.dtbo, the old-directory refusal covers both retired locations (usr/lib/omarchy-platform/dtb-overlaysandusr/share/omarchy-platform/dtb-overlays, one test each), and theDTBS=wording staysoverlay opt-in has no effect, chip enabled only by its node in the kernel DT. Contract from its diff: overlays at/usr/lib/omarchy-mac-boot/dtb-overlays/PREFIX/NAME.dtbo, opt-in/etc/omarchy-mac-boot/dtb-overlays.opt-in(one string per line,grep -Fqxagainst root propertyomarchy,opt-in), hook targetusr/lib/omarchy-mac-boot/dtb-overlays/*/*.dtbowithExec = /usr/bin/update-m1n1, omarchy-mac-boot ships the overlay directory empty, and its library lives at/usr/lib/omarchy-mac/boot/dtb-overlays.sh. Root propertiesomarchy,opt-in/omarchy,skip-if-compatibleare still read bydtb-overlays.shin the new place, so nothing changes on our overlays. If the upstream PR changes before it merges, I re-check./usr/share/omarchy-platform/dtb-overlays/PREFIX/NAME.dtbo/usr/lib/omarchy-mac-boot/dtb-overlays/PREFIX/NAME.dtbo/etc/omarchy-platform/dtb-overlays.opt-in/etc/omarchy-mac-boot/dtb-overlays.opt-inTarget = usr/share/omarchy-platform/dtb-overlays/*Target = usr/lib/omarchy-mac-boot/dtb-overlays/*OVERLAY_DIR/OPT_INinpackaging/omarchy-ane-dtare the single source (build-dtboand the hook test read them);OLD_OVERLAY_DIRnow names the vacatedusr/share/omarchy-platform/dtb-overlayssoapplyrefuses a hand install there and names the steps, as with the 2026-10-01 move. pacman removes the package-owned old files on upgrade. The opt-in file is the owner's/etcfile and is not migrated: re-add your lines to the new path (CHANGELOG Unreleased entry says so; an absent file means not opted in, which fails safe).Arch Linux ARM route unchanged: the package itself installs the
.dtbofiles into/usr/lib/omarchy-mac-boot/dtb-overlays/and creates the directory, so installs without omarchy-mac-boot need nothing else;apply,update-m1n1-dtbsand both90-omarchy-ane-dthooks stay.Files:
packaging/(omarchy-ane-dt, 90-omarchy-ane-dt.hook, omarchy-ane-check, dt/overlays, four.dtsheaders),tools/(promote_chip.py, omarchy-ane-h15-stage, test assertions in test_ane_intree/test_ane_m2/test_promote_chip),README.md,docs/h15-volunteer.md,docs/ane-soc-data.md,ane/h15+ane/h16bring-up docs and overlay headers, CHANGELOG Unreleased.tools/test_ane_dt.pyneeded no edit - it derives every path from the constants.Gates in this tree:
pytest -q tests toolsgreen (first run had one failure from an unbuilttools/ane-runbinary; aftermake -C tools, the file and the full suite pass),make -C tools checkOK, README voice lintfail=0.Receipt with the full table, the tester-step text and the omarchy-pkgs #745 recipe patch (comment fix; no install-line change -
build-dtboderives the path):receipts/2026-10-04-path-cutover/.Deliberately unmerged: waits for omarchy-mac-pkgs#3 to land.