revert: drop pacman -Scc from build container

Forcing a full cache wipe re-downloads every package every build,
lengthening builds and increasing exposure to slow mirrors. The
truncated-download failure is transient mirror flakiness, not stale
cache; pacman already falls through mirrors. Revert to upstream.
This commit is contained in:
2026-08-17 18:04:30 +02:00
parent 153b3def19
commit 14a109febf
-3
View File
@@ -20,9 +20,6 @@ sudo podman run --rm --privileged --entrypoint sh \
-e INITSYS=dinit \
localhost/antergos-build:latest -c '
set -euo pipefail
# Clear the image-layer pacman cache so a truncated/corrupt download
# (e.g. noto-fonts-emoji "Truncated tar archive") can never be reused.
pacman -Scc --noconfirm >/dev/null 2>&1 || true
mkdir -p /var/lib/artools/buildiso
mount -t tmpfs -o size=12G,exec,suid,dev tmpfs /var/lib/artools/buildiso
modprobe loop 2>/dev/null || true