aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-25 13:05:56 -0400
committerCraig Jennings <c@cjennings.net>2026-06-25 13:05:56 -0400
commit89691a0dc9eb7dcbf8583797d7cdc34aecec0d56 (patch)
tree844e1ac76c6478ad862a1fddcbfffa62778abad5 /installer
parent73e66b703258270a3d688a51dd90ed2f24401568 (diff)
downloadarchangel-89691a0dc9eb7dcbf8583797d7cdc34aecec0d56.tar.gz
archangel-89691a0dc9eb7dcbf8583797d7cdc34aecec0d56.zip
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.
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/archangel10
1 files changed, 10 insertions, 0 deletions
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