archinstall/archinstall
Softer 919a435a6b
Skip custom mirror config when keyring sync fails (#4577)
* Skip custom mirror config when keyring sync fails

Check the exit state of archlinux-keyring-wkd-sync.service after
waiting for it to finish. If it failed, skip set_mirrors() and
continue installation with default mirrors instead of crashing
with "GPGME error: No data" during pacman -Syy.

* Reinit keyring automatically when pacman sync fails with GPGME error

Instead of skipping mirror configuration when wkd-sync fails, catch
the GPGME error at the point where it actually occurs - during
pacman -Syy. If the sync fails with a keyring-related error, reinit
the keyring with pacman-key --init/--populate and retry the sync.

* Simplify pacman sync() and guard gpg-agent kill on running state

Collapse the duplicated self.ask() blocks in sync() into a single call
via a msg variable, and drop the redundant default_cmd='pacman' (it is
already the default). In _reinit_keyring(), check that gpg-agent is
actually running (pgrep -x) before killing it, instead of catching the
killall error and assuming it was not running.
2026-06-10 17:10:29 +10:00
..
applications Refactor logging and formatting logic (#4542) 2026-05-19 17:48:03 +02:00
default_profiles Add users to seat group when seatd is selected (#4578) 2026-06-10 16:56:17 +10:00
lib Skip custom mirror config when keyring sync fails (#4577) 2026-06-10 17:10:29 +10:00
locales Removing pot file freshness check (#4576) 2026-06-09 09:08:38 +02:00
scripts Add Plymouth configuration setup (#4555) 2026-06-10 16:44:03 +10:00
tui Color-code install preview: red for errors, yellow for warnings, green for ready (#4512) 2026-06-08 16:22:34 +10:00
__init__.py Convert imports to absolute imports (#4196) 2026-02-26 20:17:48 +11:00
__main__.py Replace sys.exit calls with return values (#4156) 2026-01-22 13:58:40 +11:00
examples Adding symlink to examples. 2020-07-08 12:34:22 +00:00
main.py Refactor logging and formatting logic (#4542) 2026-05-19 17:48:03 +02:00