summaryrefslogtreecommitdiff
path: root/adelie-build-cd
diff options
context:
space:
mode:
Diffstat (limited to 'adelie-build-cd')
-rwxr-xr-xadelie-build-cd5
1 files changed, 3 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
}