Repository navigation
Drop a returned [asahi-alarm] even after its key is gone - #223
Merged
Merged
Conversation
Once the helper has deleted the key, an older template that writes the section back makes pacman refuse every sync query, so the import guards could never pass and the helper stayed pending with pacman unusable. The guards now apply only while the key is still trusted, and the inventory is recorded only when the repository can still be listed. Fixes #219
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the keyless repository cleanup and inventory-handling changes.
No open issues 🎉
What changed in this PR
Fixes #219 by allowing the Mac cleanup helper to remove a restored [asahi-alarm] repository after its signing key is gone, recovering from a state that blocks pacman sync queries.
Changes:
- Skip import-availability checks when the repository key is absent, while preserving keyring guards.
- Record inventory only when the repository query succeeds.
- Add regression coverage for keyless recovery and document the updated behavior.
| File | Description |
|---|---|
omarchy-mac/test/drop-asahi-alarm-test.sh |
Simulates untrusted-database failures and covers keyless cleanup scenarios. |
omarchy-mac/README.md |
Documents conditional import checks and inventory recording. |
omarchy-mac/bin/omarchy-mac-drop-asahi-alarm |
Allows keyless repository removal and avoids saving inventory from failed queries. |
Review effort: Balanced
[Medium impact] The PR appears safe to merge. SummaryThe helper now removes a returned
|
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.
Summary
Fixes omarchy-mac-pkgs#219. Once the helper has deleted the asahi-alarm key, an older template that writes
[asahi-alarm]back makes pacman refuse every sync query. The import guards then never passed, the helper stayed pending, and pacman stayed unusable. Reported from the field by NeoCode914 on an M2 Air (comment).Without its key the repository delivers nothing, so waiting on
[omarchy]could never end. That includes a switch to a channel that lacks an import the Mac has. Example: edge carriesfex-emu-rootfs-archand rc doesn't. A first run, where the key is still present, behaves exactly as before.Evidence
The pacman test stub now fails every
-S*query while[asahi-alarm]is configured and its key is absent, the way real pacman does.not ok - the returned repository is dropped again and the machine marked again omarchy asahi-alarm core extra alarm customAfter:
drop-asahi-alarm-test.sh: 15/15 ok in an Arch Linux ARM container, including the new cases:error:outputfex-emu-rootfs-archon rc), the repository is still dropped and the Mac marked done[asahi-alarm]written onto a Mac that never trusted it is dropped, with no inventory recordedshellcheck
-S warningis clean.Merge Danger
Door: two-way
A release through
release/omarchy-mac-*is still needed to reach Macs, and then promotion to rc, which still ships the old templates.Blast Radius: cleaned-Macs
The change only affects Apple Silicon Macs that already lost the key, where
[asahi-alarm]was unusable anyway. While the key is present, all guards hold as before.