~comcloudway/builds.sr.ht

73f8323784ec75e6f1649817150027bc6e47d06c — Simon Ser 11 months ago 083dec4
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))
1 files changed, 3 insertions(+), 1 deletions(-)

M images/archlinux/functions
M images/archlinux/functions => images/archlinux/functions +3 -1
@@ 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 "$@"