From 8be3147fd9d95f78b1c8d8c516df728cb26024a0 Mon Sep 17 00:00:00 2001 From: Gabriele Giacone <1o5g4r8o@gmail.com> Date: Sun, 17 Aug 2014 04:18:23 +0200 Subject: Add more patterns to detect VM poweroff. --- bin/g-i-installation.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index cb46e1bc..83fca526 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -888,7 +888,9 @@ monitor_system() { SOFTWARE_PROBLEM=$(grep "The failing step is: Select and install software" $GOCR || true) BUILD_LTSP_PROBLEM=$(grep "The failing step is: Build LTSP chroot" $GOCR || true) rm $GOCR $GOCR.ppm - if [[ "$LAST_LINE" =~ .*Power\ down.* ]] ; then + if [[ "$LAST_LINE" =~ .*Power\ down.* ]] || + [[ "$LAST_LINE" =~ .*System\ halted.* ]] || + [[ "$LAST_LINE" =~ .*Cannot\ .inalize\ remaining\ .ile\ systems.* ]]; then echo "QEMU was powered down." break elif [ ! -z "$STACK_LINE" ] ; then -- cgit v1.2.3-70-g09d2