From 73f8323784ec75e6f1649817150027bc6e47d06c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 4 Dec 2023 11:17:54 +0000 Subject: [PATCH] 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 " 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 " 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)) --- images/archlinux/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/images/archlinux/functions b/images/archlinux/functions index 29b24a2..5769cea 100644 --- a/images/archlinux/functions +++ b/images/archlinux/functions @@ -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 "$@" -- 2.38.5