projects
/
dev-env-setup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8775c1a
)
add apt-acquire-retries to coriolis2-chroot
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 8 Sep 2021 17:57:06 +0000
(18:57 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 8 Sep 2021 17:57:06 +0000
(18:57 +0100)
coriolis2-chroot
patch
|
blob
|
history
diff --git
a/coriolis2-chroot
b/coriolis2-chroot
index bb8b7ff8216c10c5114df08518d7c9986fc76924..121f15abe09c9f4e7b18eda53149dd47a5ab05e8 100755
(executable)
--- a/
coriolis2-chroot
+++ b/
coriolis2-chroot
@@
-5,6
+5,11
@@
if [ "$EUID" -ne 0 ]
fi
# Create coriolis chroot dir in /opt
mkdir -p /opt/chroot/coriolis
+
+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/coriolis/etc/apt/apt.conf.d/80-retries
+
# Install debootstrap and schroot via apt
apt install -y debootstrap schroot
# Install debian/buster chroot using debootstrap