Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/mkarchroot.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-19 22:12:33 +0200
committerErich Eckner <git@eckner.net>2021-02-13 14:06:33 +0100
commit9e635136507b4f1aaff33d05c249b0d7c249a98f (patch)
treeed1634b93135c23a955709705a609fa9e513ba3b /mkarchroot.in
parent53f31b04afa8f68770cec1dfbc44d4e35fb5eec2 (diff)
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 'mkarchroot.in')
-rw-r--r--mkarchroot.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkarchroot.in b/mkarchroot.in
index fc5ded6..ecece06 100644
--- a/mkarchroot.in
+++ b/mkarchroot.in
@@ -100,6 +100,8 @@ echo "$CHROOT_VERSION" > "$working_dir/.arch-chroot"
systemd-machine-id-setup --root="$working_dir"
+pacman-key --gpgdir "$working_dir"/etc/pacman.d/gnupg --init
+
exec arch-nspawn \
"${nspawn_args[@]}" \
"$working_dir" locale-gen