Skip to content
Snippets Groups Projects
Verified Commit 19f46499 authored by Michal Hrusecky's avatar Michal Hrusecky :mouse: Committed by Karel Koci
Browse files

rescue-image: Set explicit wget timeout

Specify explicitly that wget should timeout after three seconds and we
will go for another retry. Failing faster and retrying sooner.
parent 7cb93d25
Branches
Tags
1 merge request!705Various rescue-image fixes
......@@ -107,9 +107,9 @@ download_medkit() {
mkdir -p /mnt/src
# Download medkit and signature
for ext in tar.gz tar.gz.sig; do
i=0
local i=0
# We are checking signature, so we don't care about https certificate
while ! wget --no-check-certificate -O /mnt/src/medkit.$ext https://repo.turris.cz/hbs/medkit/${BOARD}-medkit${MDKT_VARIANT}-latest.$ext; do
while ! wget -T 3 --no-check-certificate -O /mnt/src/medkit.$ext https://repo.turris.cz/hbs/medkit/${BOARD}-medkit${MDKT_VARIANT}-latest.$ext; do
echo "Can't download $BOARD-medkit-latest.$ext :-("
sleep 2
i="$(expr "$i" + 1)"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment