From: Luke Kenneth Casson Leighton Date: Wed, 8 Sep 2021 17:57:06 +0000 (+0100) Subject: add apt-acquire-retries to coriolis2-chroot X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0c0808a5360a20230f66003d0a0ac99a1a268b2;p=dev-env-setup.git add apt-acquire-retries to coriolis2-chroot --- diff --git a/coriolis2-chroot b/coriolis2-chroot index bb8b7ff..121f15a 100755 --- a/coriolis2-chroot +++ b/coriolis2-chroot @@ -5,6 +5,11 @@ if [ "$EUID" -ne 0 ] fi # Create coriolis chroot dir in /opt mkdir -p /opt/chroot/coriolis + +echo "adding retries for debootstrap to not fail" +echo 'APT::Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries +echo 'APT::Acquire::Retries "10";' > /opt/chroot/coriolis/etc/apt/apt.conf.d/80-retries + # Install debootstrap and schroot via apt apt install -y debootstrap schroot # Install debian/buster chroot using debootstrap