From 1a75d04704ae89bfe0f29d03e0c697d94a98468a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 8 Sep 2021 18:43:46 +0100 Subject: [PATCH] add apt-acquire-retries to stop debootstrap failing --- mk-deb-chroot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mk-deb-chroot b/mk-deb-chroot index 969930f..26c020c 100755 --- a/mk-deb-chroot +++ b/mk-deb-chroot @@ -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 -- 2.30.2