summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2020-12-29 14:32:33 +0100
committerAllan McRae <allan@archlinux.org>2021-01-03 02:19:21 +0100
commit19980a61e9ed9b9a57520aaa919c40a4b5311f87 (patch)
treedee81e84764bc984cc3ddf70bb61c057b455cdf9
parenta023565ed370851fd5bf61298460fe0adb0b4189 (diff)
downloadpacman-19980a61e9ed9b9a57520aaa919c40a4b5311f87.tar.gz
pacman-19980a61e9ed9b9a57520aaa919c40a4b5311f87.tar.xz
pacman-key: warn about time taken for master key generation
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@archlinux.org>
-rw-r--r--scripts/pacman-key.sh.in2
1 files changed, 2 insertions, 0 deletions
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