Repository navigation
Make the pacman keyring in the background during a first install - #19022
Merged
Merged
Conversation
Making it took 3.7s at the end of system setup on aarch64, and nothing before that step needs it. It now starts first thing, in a directory of its own, and finalization waits for it and moves it into place. A run that fails or never started leaves finalization to make it, as before, and an upgrade keeps its keyring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Medium impact] The changes since the previous review appear safe to merge. SummaryThe PR makes the pacman keyring in the background during a first install on supported ARM machines.
Reviews (4) · Last reviewed commit: "Stop the keyring test's held jobs when i..." · Reviewed by Greptile |
The background job's --populate now blocks until the test releases it, so a finalization that didn't wait on the lock would finish early and fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changes
On aarch64 (except Apple Silicon), install finalization makes the machine's pacman keyring with
pacman-key --initand--populate. It was the slowest step of a recent install at 3.7s, of about 18s in total, and it ran at the very end of system setup although nothing before it needs the keyring.install/config/pacman-keyring.shnow starts it first thing in system setup, in the background, in a directory of its own (/etc/pacman.d/gnupg.omarchy-next). The rest of setup keeps using the keyring the image has.install/post-install/pacman.shwaits for it on a lock, then moves it into place over the image's keyring. If it failed or never started, that step makes the keyring inline, as before.Expected saving: most of the 3.7s, since config, hardware and login setup together take about as long and now run alongside it. I haven't measured it on a real install yet.
Verification
image-deferred-hardware-test.shgets three new cases:--populateis held until the test releases it), then moves it into place over the image's, with no second keyring made;pacman-templates-test.sh,hardware-quirks-test.sh,region-pacman-test.shandchannel-switch-test.sh.No visible change: install-time setup only.
🤖 Generated with Claude Code