summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-19 22:12:33 +0200
committerErich Eckner <git@eckner.net>2020-05-18 08:45:02 +0200
commit0fd4173f367994188b2d04e2534a882866449eb9 (patch)
treefcbef5b7e367fe6f3c14bdb3bc89db00e8ff67b7 /makechrootpkg.in
parent25fc755a82a114ede5bad4e40c1a9da43014dde4 (diff)
downloaddevtools32-0fd4173f367994188b2d04e2534a882866449eb9.tar.xz
makechrootpkg & mkarchroot: init and populate keyrings
We had trouble in the past with not properly initialized keyrings. This change aims at fixing this.
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 99534c4..866a075 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -209,6 +209,9 @@ _chrootbuild() {
# shellcheck source=/dev/null
. /etc/profile
+ # otherwise we might have missing keys
+ pacman-key --populate
+
# Beware, there are some stupid arbitrary rules on how you can
# use "$" in arguments to commands with "sudo -i". ${foo} or
# ${1} is OK, but $foo or $1 isn't.