From 5fe10b6fe966d78c9b8a1f6faa298927e3c09c9f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 8 Sep 2021 18:45:14 +0100 Subject: [PATCH] add apt-acquire-retries to both chroot and host --- mk-deb-chroot | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mk-deb-chroot b/mk-deb-chroot index 26c020c..23c0842 100755 --- a/mk-deb-chroot +++ b/mk-deb-chroot @@ -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 -- 2.30.2