aboutsummaryrefslogtreecommitdiffstats
path: root/.extras/image-builder/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to '.extras/image-builder/bootstrap.sh')
-rwxr-xr-x.extras/image-builder/bootstrap.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/.extras/image-builder/bootstrap.sh b/.extras/image-builder/bootstrap.sh
index ff766d1..e9d9be5 100755
--- a/.extras/image-builder/bootstrap.sh
+++ b/.extras/image-builder/bootstrap.sh
@@ -268,7 +268,11 @@ build_variant() {
local REPO_KEY="slackware64-${VERSION}"
local PKG_PATH; PKG_PATH="$(mirror_path "${MIRROR}" "${REPO_KEY}")"
local TAG="${REGISTRY_IMAGE}:${VERSION}"
- local SLACKPKG_MIRROR="https://slackware.nl/slackware/slackware64-${VERSION}/"
+ # Bake the LAN HTTP mirror into the base image: the full-image build serves
+ # the NFS mirror over HTTP on the bridge (see build-full-image.sh), rooted
+ # at the variant's mirror tree, so slackpkg pulls from LAN not the internet.
+ # The URL is variant-agnostic (the server's --directory selects the tree).
+ local SLACKPKG_MIRROR="http://${HTTP_MIRROR_HOST}:${HTTP_MIRROR_PORT}/"
_log "=== Building ${TAG} from ${PKG_PATH} ==="