From c0c0808a5360a20230f66003d0a0ac99a1a268b2 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 8 Sep 2021 18:57:06 +0100 Subject: [PATCH] add apt-acquire-retries to coriolis2-chroot --- coriolis2-chroot | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2