images/archlinux: upgrade archlinux-keyring before other packages

Currently the Arch image is broken because the keyring has been
updated but the package is too old:

    curl: signature from "Leonidas Spyropoulos <artafinde@archlinux.org>" is unknown trust
    :: deleting corrupted file '/var/cache/pacman/pkg/curl-8.4.0-2-x86_64.pkg.tar.zst' (invalid or corrupted package (PGP signature))
    syslinux: signature from "Leonidas Spyropoulos <artafinde@archlinux.org>" is unknown trust
    :: deleting corrupted file '/var/cache/pacman/pkg/syslinux-6.04.pre2.r11.gbf6db5b4-4-x86_64.pkg.tar.zst' (invalid or corrupted package (PGP signature))
This commit is contained in:
Simon Ser 2023-12-04 11:17:54 +00:00 committed by Drew DeVault
parent 083dec43f2
commit 73f8323784
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ boot() {
install() {
port=$1
shift 1
guest_ssh -p $port build@localhost sudo pacsync
guest_ssh -p $port build@localhost \
sudo pacman -Sy --noconfirm --needed archlinux-keyring
# Use pacinstall instead of pacman to resolve conflicts
guest_ssh -n -p $port build@localhost sudo pacinstall --sysupgrade --yolo
guest_ssh -p $port build@localhost EDITOR=true PKGEXT=.pkg.tar yay \
--needed --noconfirm --noprovides -S "$@"