[pacman-dev] [PATCH] pacman-key: warn about time take for master key generation
Allan McRae
allan at archlinux.org
Tue Dec 29 13:36:17 UTC 2020
Generating the pacman master key can take some time on systems
without enough entropy. Warn the user that the generation may
take some time.
Fixes FS#30286.
Signed-off-by: Allan McRae <allan at archlinux.org>
---
scripts/pacman-key.sh.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in
index ccfd1b96..59162840 100644
--- a/scripts/pacman-key.sh.in
+++ b/scripts/pacman-key.sh.in
@@ -145,6 +145,8 @@ key_lookup_from_name() {
generate_master_key() {
# Generate the master key, which will be in both pubring and secring
+ msg "$(gettext "Generating pacman master key. This may take some time.")
+
"${GPG_PACMAN[@]}" --gen-key --batch <<EOF
%echo Generating pacman keyring master key...
Key-Type: RSA
--
2.29.2
More information about the pacman-dev
mailing list