From 89691a0dc9eb7dcbf8583797d7cdc34aecec0d56 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 25 Jun 2026 13:05:56 -0400 Subject: fix(installer): refresh package databases before pacstrap A ZFS-root install from an aged ISO died in install_base: dkms couldn't build zfs/2.3.3 against a current linux-lts. The ISO bakes the archzfs sync db at build time, so as the ISO ages that db keeps pinning an older zfs-dkms while linux-lts is pulled current from the live mirror. The DKMS module then fails to compile against the newer kernel. Run pacman -Syy after the archzfs and baked-AUR repos are added to the live pacman.conf and before pacstrap -K, so pacstrap resolves the current zfs-dkms instead of the stale baked one. A plain -y can be skipped by pacman's freshness check against the GitHub-served archzfs db (no reliable timestamps), so -yy forces the refresh. --- installer/archangel | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'installer') diff --git a/installer/archangel b/installer/archangel index ec3017a..f90b158 100755 --- a/installer/archangel +++ b/installer/archangel @@ -794,6 +794,16 @@ EOF info "Baked AUR packages to install: ${aur_packages[*]:-none}" fi + # Force-refresh package databases before pacstrap. The ISO bakes an + # archzfs sync db at build time, so as the ISO ages that db pins an older + # zfs-dkms while linux-lts is pulled current from the live mirror, and the + # DKMS build then fails against the newer kernel. A single -y can be + # skipped by pacman's freshness check against the GitHub-served archzfs db + # (no reliable timestamps), so -yy forces the refresh. This keeps the + # "zfs-dkms always matches the kernel" guarantee true regardless of ISO age. + info "Refreshing package databases..." + pacman -Syy --noconfirm || error "Failed to refresh package databases" + info "Installing base packages (this takes a while)..." local packages -- cgit v1.2.3