From 948a5b82a87b06a243d98a9272622f65581b95f4 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 25 Feb 2015 22:39:49 +0100 Subject: chroot-installation: catch a second type of network failures --- bin/chroot-installation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh index fd6dcb2d..47b48d68 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" $TMPLOG || true) + RESULT=$(egrep "Failed to fetch.*(Unable to connect to|Connection failed)" $TMPLOG || true) if [ ! -z "$RESULT" ] ; then echo echo "Warning: Network problem detected." -- cgit v1.2.3-70-g09d2