make_mirror.sh: limit download speed as some mirrors don't like downloading us too much too fast
This commit is contained in:
parent
3b2a681cc6
commit
64a7ac5ceb
1 changed files with 6 additions and 0 deletions
|
@ -224,6 +224,9 @@ Apt::Get::Download-Only true;
|
||||||
Acquire::Languages "none";
|
Acquire::Languages "none";
|
||||||
Dir::Etc::Trusted "/etc/apt/trusted.gpg";
|
Dir::Etc::Trusted "/etc/apt/trusted.gpg";
|
||||||
Dir::Etc::TrustedParts "/etc/apt/trusted.gpg.d";
|
Dir::Etc::TrustedParts "/etc/apt/trusted.gpg.d";
|
||||||
|
Acquire::http::Dl-Limit "1000";
|
||||||
|
Acquire::https::Dl-Limit "1000";
|
||||||
|
Acquire::Retries "5";
|
||||||
END
|
END
|
||||||
|
|
||||||
> "$rootdir/var/lib/dpkg/status"
|
> "$rootdir/var/lib/dpkg/status"
|
||||||
|
@ -507,6 +510,9 @@ if [ "$HAVE_QEMU" = "yes" ]; then
|
||||||
arches=$HOSTARCH
|
arches=$HOSTARCH
|
||||||
fi
|
fi
|
||||||
$CMD --variant=apt --architectures=$arches --include="$pkgs" \
|
$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"
|
$DEFAULT_DIST - "$mirror" > "$tmpdir/debian-chroot.tar"
|
||||||
|
|
||||||
cat << END > "$tmpdir/extlinux.conf"
|
cat << END > "$tmpdir/extlinux.conf"
|
||||||
|
|
Loading…
Reference in a new issue