pkg-cache: host package cache opt-in (default OFF) + origin fallback health check #68

Merged
jknapp merged 3 commits from feat/pkgcache-host-optin into trunk 2026-11-29 15:32:32 +00:00
Showing only changes of commit 18dc4603da - Show all commits
+1
View File
@@ -255,6 +255,7 @@ HTTP 200, non-empty, a real PGP signature). The `.asc` is what broke on 2026-11-
repos are already cache-first with the origin as 2nd URL. They have no health timer and no
`/etc/pkgcache-host.conf`, so `sync` treats them as OFF and would revert them. To keep them
on the cache, write the config with `PKGCACHE_ENABLED=1` first. To take them off, run `revert`.
**Before the first `sync` on the canary (192.168.1.148, which must keep using the cache)**, write `/etc/pkgcache-host.conf` there with `PKGCACHE_ENABLED=1`, `PKGCACHE_URL=https://192.168.1.40` and `PKGCACHE_CA=<path to ca.crt>`. A `sync` without that file reverts it to the stock repos.
**Why not "cache first, mirrorlist as fallback":** measured on AL10, with
mirrorlist/metalink left in place dnf **ignores `baseurl` completely** (0 cache