add apt-acquire-retries to coriolis2-chroot
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 Sep 2021 17:57:06 +0000 (18:57 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 Sep 2021 17:57:06 +0000 (18:57 +0100)
coriolis2-chroot

index bb8b7ff8216c10c5114df08518d7c9986fc76924..121f15abe09c9f4e7b18eda53149dd47a5ab05e8 100755 (executable)
@@ -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