From f83266c124b31810bfa674f54a87511fbec07512 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 3 Sep 2015 14:37:58 +0200 Subject: detect more reasons for apt failing --- 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 370f7ed4..82f111bf 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -56,7 +56,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)" $TMPLOG || true) + RESULT=$(egrep "Failed to fetch.*(Unable to connect to|Connection failed|Size mismatch|Cannot initiate the connection to|Bad Gateway)" $TMPLOG || true) if [ ! -z "$RESULT" ] ; then echo echo "Warning: Network problem detected." -- cgit v1.2.3-54-g00ecf