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>
This commit is contained in:
Allan McRae 2020-12-29 23:32:33 +10:00
parent a023565ed3
commit 19980a61e9

View file

@ -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