From 64a7ac5ceb81be43a2091e5f547eb17c24ac2352 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Tue, 9 Nov 2021 07:29:42 +0100 Subject: [PATCH] make_mirror.sh: limit download speed as some mirrors don't like downloading us too much too fast --- make_mirror.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/make_mirror.sh b/make_mirror.sh index 5cacdb0..0acb089 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -224,6 +224,9 @@ Apt::Get::Download-Only true; Acquire::Languages "none"; Dir::Etc::Trusted "/etc/apt/trusted.gpg"; Dir::Etc::TrustedParts "/etc/apt/trusted.gpg.d"; +Acquire::http::Dl-Limit "1000"; +Acquire::https::Dl-Limit "1000"; +Acquire::Retries "5"; END > "$rootdir/var/lib/dpkg/status" @@ -507,6 +510,9 @@ if [ "$HAVE_QEMU" = "yes" ]; then arches=$HOSTARCH fi $CMD --variant=apt --architectures=$arches --include="$pkgs" \ + --aptopt='Acquire::http::Dl-Limit "1000"' \ + --aptopt='Acquire::https::Dl-Limit "1000"' \ + --aptopt='Acquire::Retries "5"' \ $DEFAULT_DIST - "$mirror" > "$tmpdir/debian-chroot.tar" cat << END > "$tmpdir/extlinux.conf"