From 517b85821238f0ec26b890babeb53b606329190e Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Fri, 22 Mar 2024 22:39:16 +0000 Subject: [PATCH] Use mirror when populating sysroots --- lib/config.sh | 3 +++ lib/functions.sh | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/lib/config.sh b/lib/config.sh index 2e8abdce3b..e78bc18aa2 100644 --- a/lib/config.sh +++ b/lib/config.sh @@ -114,6 +114,9 @@ else [$NATIVE_ARCH]=$IPS_REPO [aarch64]=https://pkg.omnios.org/bloody/braich ) + IPS_MIRRORS=( + [aarch64]=https://us-west.mirror.omnios.org/bloody/braich + ) fi ARCHIVE_TYPES="tar.zst tar.xz tar.bz2 tar.lz tar.gz tgz tar zip" diff --git a/lib/functions.sh b/lib/functions.sh index 6bc8455fe5..7561b71d98 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -788,6 +788,10 @@ init_sysroot() { aarch64) logcmd $PKGCLIENT -R $tmpsysroot set-publisher \ -g ${IPS_REPOS[$arch]} $PKGPUBLISHER + if [ -n "${IPS_MIRRORS[$arch]}" ]; then + logcmd $PKGCLIENT -R $tmpsysroot set-publisher \ + -m ${IPS_MIRRORS[$arch]} $PKGPUBLISHER + fi logcmd -p $PKGCLIENT -R $tmpsysroot install '*' logcmd cp /etc/zones/SUNWdefault.xml $tmpsysroot/etc/zones/ ;;