add apt-acquire-retries to both chroot and host
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 Sep 2021 17:45:14 +0000 (18:45 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 Sep 2021 17:45:14 +0000 (18:45 +0100)
mk-deb-chroot

index 26c020cab08fdbffccbbea65eade7114ca17f4dc..23c08421c38958d1524d117367a67cc553493fe3 100755 (executable)
@@ -14,14 +14,16 @@ 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
 mkdir /opt/chroot/$chrootdir
 
+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/$chrootdir/etc/apt/apt.conf.d/80-retries
+
 # Install debootstrap and schroot
 if [ -e /etc/debian_version ]; then
     # Debian detected: use apt