From ef0f03ea987bfebdd6da1546f5af2aa4a5860783 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 29 Jul 2026 08:34:29 +0200 Subject: [PATCH] fix(guide): full-sync arch in the boot image instead of a partial -Sy The guide job builds its boot image from a pinned pkgmgr-arch parent that can be weeks old, and `pacman -Sy systemd` against it is the partial upgrade arch upstream documents as unsupported. It pulled systemd 261.2-1 next to the image's systemd-sysvcompat, which pins systemd exactly, so the transaction could not be satisfied and every arch guide run died before the README sequence started. Refreshing archlinux-keyring first and then running a full -Syu --needed fixes it; the cache wipe matches what the apt and dnf branches already do. The upgrade lands in the PREP container, which runs sleep infinity, so systemd is only ever replaced before it becomes PID 1 in the committed image. Co-Authored-By: Claude Opus 5 (1M context) --- scripts/github/guide/host_deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/github/guide/host_deploy.sh b/scripts/github/guide/host_deploy.sh index 1b35f98674..41a2ad6188 100755 --- a/scripts/github/guide/host_deploy.sh +++ b/scripts/github/guide/host_deploy.sh @@ -28,7 +28,9 @@ docker exec "${PREP}" sh -c ' elif command -v dnf >/dev/null 2>&1; then dnf install -y systemd elif command -v pacman >/dev/null 2>&1; then - pacman -Sy --noconfirm systemd + pacman -Sy --noconfirm --needed archlinux-keyring + pacman -Syu --noconfirm --needed systemd + rm -rf /var/cache/pacman/pkg/* fi grep -q myhostname /etc/nsswitch.conf || sed -i "s/^hosts:.*/& myhostname/" /etc/nsswitch.conf [ -e /sbin/init ] || ln -sf /lib/systemd/systemd /sbin/init