From 41dc2844d67971b6e233d3a901b31443f34912b2 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 1 Aug 2018 03:13:26 -0500 Subject: adelie-build-cd: Add MY_URL env var and document it --- adelie-build-cd | 5 +++-- adelie-build-cd.8 | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/adelie-build-cd b/adelie-build-cd index 56727c7..9d437e5 100755 --- a/adelie-build-cd +++ b/adelie-build-cd @@ -105,6 +105,7 @@ declare -r ARCH=${MY_ARCH:-$def_arch} declare -r LDARCH=${LDARCH:-$ARCH} declare -r PHASE=${MY_PHASE:-all} declare -r VERSION=${MY_VER:-$def_ver} +declare -r URL=${MY_URL:-https://distfiles.adelielinux.org/adelie/$VERSION/} set +a ensure_commands @@ -145,8 +146,8 @@ install_pkgs() { mkdir -p squashroot-$ARCH/usr/sbin cp addgroup adduser squashroot-$ARCH/usr/sbin/ apk --arch $ARCH \ - -X "https://distfiles.adelielinux.org/adelie/$VERSION/system/$EXTRA_MIRROR" \ - -X "https://distfiles.adelielinux.org/adelie/$VERSION/user/$EXTRA_MIRROR" \ + -X "$URL/system/$EXTRA_MIRROR" \ + -X "$URL/user/$EXTRA_MIRROR" \ -U --root squashroot-$ARCH --initdb add $PACKAGES $ARCH_PKGS } diff --git a/adelie-build-cd.8 b/adelie-build-cd.8 index f174caf..802bd01 100644 --- a/adelie-build-cd.8 +++ b/adelie-build-cd.8 @@ -104,6 +104,12 @@ ld-musl-powerpc.so.1), you may specify the name of the ld architecture as For architectures that have subarchitectures (such as x86 with i486 and i525), you may specify the extra mirror directory to use as .Ev EXTRA_MIRROR . +.It Ev Sy MY_URL +Use a custom URL for downloading. This does not change the URLs written to +/etc/apk/repositories on the generated image. +.Pp +For instance, a speedy way to generate a testing ISO on a builder would be to +specify MY_URL=/srv/packages. .El -- cgit v1.2.3-70-g09d2