From 0c5b10a77b1a5ee034b75aa4d4f942c6b4d4ef89 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Sat, 17 Dec 2022 13:32:08 +0100 Subject: [PATCH] armbian-next: introduce `SKIP_ARMBIAN_ROOTFS_CACHE` which is `=yes` by default - that is in addition to `SKIP_ARMBIAN_REPO` which is not set by default --- lib/functions/host/prepare-host.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/functions/host/prepare-host.sh b/lib/functions/host/prepare-host.sh index a1591c1b6a..e9813372cc 100644 --- a/lib/functions/host/prepare-host.sh +++ b/lib/functions/host/prepare-host.sh @@ -31,8 +31,10 @@ prepare_host() { export LC_ALL="en_US.UTF-8" + # armbian-next: Armbian mirrors and the download code is highly unstable; disable by default + # armbian-next: set `SKIP_ARMBIAN_ROOTFS_CACHE=no` to enable # don't use mirrors that throws garbage on 404 - if [[ -z ${ARMBIAN_MIRROR} && "${SKIP_ARMBIAN_REPO}" != "yes" ]]; then + if [[ -z ${ARMBIAN_MIRROR} && "${SKIP_ARMBIAN_REPO}" != "yes" && "${SKIP_ARMBIAN_ROOTFS_CACHE:-"yes"}" != "yes" ]]; then display_alert "Determining best Armbian mirror to use" "via redirector" "debug" declare -i armbian_mirror_tries=1 while true; do