From: Luke Kenneth Casson Leighton Date: Wed, 8 Sep 2021 17:45:14 +0000 (+0100) Subject: add apt-acquire-retries to both chroot and host X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5fe10b6fe966d78c9b8a1f6faa298927e3c09c9f;p=dev-env-setup.git add apt-acquire-retries to both chroot and host --- 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