From 01b50db405b29823e933553df2707115990f7967 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sat, 27 Sep 2014 14:23:48 +0100 Subject: [PATCH] Init pacman keys if not done so previously --- bootstrap-salt.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 143306f..537fda7 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -3316,6 +3316,10 @@ install_amazon_linux_ami_testing_post() { # install_arch_linux_stable_deps() { + if [ ! -f /etc/pacman.d/gnupg ]; then + pacman-key --init && pacman-key --populate archlinux || return 1 + fi + if [ "$_UPGRADE_SYS" -eq $BS_TRUE ]; then pacman -Syyu --noconfirm --needed || return 1 fi