summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-01 03:13:26 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-01 03:13:49 -0500
commit41dc2844d67971b6e233d3a901b31443f34912b2 (patch)
tree7ca92c1d00955dfd159e7e2a577560a2fa9e56b6
parentbb58b17d9c77b566045fb3d422fc934d2f3423e9 (diff)
downloadimage-41dc2844d67971b6e233d3a901b31443f34912b2.tar.gz
image-41dc2844d67971b6e233d3a901b31443f34912b2.tar.bz2
image-41dc2844d67971b6e233d3a901b31443f34912b2.tar.xz
image-41dc2844d67971b6e233d3a901b31443f34912b2.zip
adelie-build-cd: Add MY_URL env var and document it
-rwxr-xr-xadelie-build-cd5
-rw-r--r--adelie-build-cd.86
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