From 71e7314d0ee46fbc807b630f6c823c9b587c10c0 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 9 Sep 2017 13:53:46 +0200 Subject: chroot-installs: detect Hash Sum mismatches and try again Signed-off-by: Holger Levsen --- bin/chroot-installation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/chroot-installation.sh') diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh index e2e467a0..a4578cfd 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -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." -- cgit v1.2.3-54-g00ecf