add apt-acquire-retries to stop debootstrap failing
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 Sep 2021 17:43:46 +0000 (18:43 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 Sep 2021 17:43:46 +0000 (18:43 +0100)
mk-deb-chroot

index 969930fd8b906f784902f9ea938b688386e492f3..26c020cab08fdbffccbbea65eade7114ca17f4dc 100755 (executable)
@@ -14,6 +14,9 @@ if [ -e /opt/chroot/$chrootdir ]; then
     exit
 fi
 
+echo "adding retries for debootstrap to not fail"
+echo 'APT::Acquire::Retries "10";' > /etc/apt/apt.conf.d/80-retries
+
 echo "Creating chroot dir '$chrootdir'"
 
 # Create coriolis chroot dir in /opt