Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2020-12-29 23:32:33 +1000
committerAllan McRae <allan@archlinux.org>2021-01-03 11:19:21 +1000
commit19980a61e9ed9b9a57520aaa919c40a4b5311f87 (patch)
treedee81e84764bc984cc3ddf70bb61c057b455cdf9 /scripts
parenta023565ed370851fd5bf61298460fe0adb0b4189 (diff)
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>
Diffstat (limited to 'scripts')
-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