Init pacman keys if not done so previously

This commit is contained in:
Pedro Algarvio 2014-09-27 14:23:48 +01:00
parent 19276c53a8
commit 01b50db405

View file

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