summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorRaphaël Hertzog <raphael@offensive-security.com>2020-09-25 11:08:40 +0200
committerRaphaël Hertzog <raphael@offensive-security.com>2020-09-25 11:08:40 +0200
commitb14a9e5c79bbba9299bc7316c439e113f835a414 (patch)
tree78ee851705b70f6f1bf9f4b8e75917567a7d61b7 /functions
parent990dcf2eed4e5b3a9d6b4e9edefb255de095e922 (diff)
downloadvyos-live-build-b14a9e5c79bbba9299bc7316c439e113f835a414.tar.gz
vyos-live-build-b14a9e5c79bbba9299bc7316c439e113f835a414.zip
Tell APT to retry downloads a few times before giving up
We want to be resilient to small network hiccups and when you download a large number of packages, the probability of a network hiccup are increasing... as are the chances of hitting one of the apt bugs (cf "Undetermined error"...).
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/configuration.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/configuration.sh b/functions/configuration.sh
index 7c9e1e9e1..02a589448 100755
--- a/functions/configuration.sh
+++ b/functions/configuration.sh
@@ -105,8 +105,8 @@ Prepare_config ()
LB_APT_SOURCE_ARCHIVES="${LB_APT_SOURCE_ARCHIVES:-true}"
LB_APT_INDICES="${LB_APT_INDICES:-true}"
- APT_OPTIONS="${APT_OPTIONS:---yes}"
- APTITUDE_OPTIONS="${APTITUDE_OPTIONS:---assume-yes}"
+ APT_OPTIONS="${APT_OPTIONS:---yes -o Acquire::Retries=5}"
+ APTITUDE_OPTIONS="${APTITUDE_OPTIONS:---assume-yes -o Acquire::Retries=5}"
BZIP2_OPTIONS="${BZIP2_OPTIONS:--6}"
GZIP_OPTIONS="${GZIP_OPTIONS:--6}"