Commit 71e7314d authored by Holger Levsen's avatar Holger Levsen

chroot-installs: detect Hash Sum mismatches and try again

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 7ad8be1a
......@@ -57,7 +57,7 @@ execute_ctmpfile() {
(sudo chroot $CHROOT_TARGET $TMPFILE 2>&1 | tee $TMPLOG) || true
RESULT=$(grep "xxxxxSUCCESSxxxxx" $TMPLOG || true)
if [ -z "$RESULT" ] ; then
RESULT=$(egrep "Failed to fetch.*(Unable to connect to|Connection failed|Size mismatch|Cannot initiate the connection to|Bad Gateway|Service Unavailable)" $TMPLOG || true)
RESULT=$(egrep "Failed to fetch.*(Unable to connect to|Connection failed|Size mismatch|Cannot initiate the connection to|Bad Gateway|Service Unavailable|Hash Sum mismatch)" $TMPLOG || true)
if [ ! -z "$RESULT" ] ; then
echo
echo "$(date -u) - Warning: Network problem detected."
......
Markdown is supported
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