From 674fc600746ea5c4fb60576d59240c3a42719fbb Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 1 Nov 2014 12:08:47 +0100 Subject: g-i-i: detect hanging system waiting for root maintainance --- bin/g-i-installation.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index 38bdede2..fe12e8b7 100644 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -959,6 +959,7 @@ monitor_system() { INVALID_SIG_LINE=$(egrep "(Invalid Release signature)" $GOCR || true) CDROM_PROBLEM=$(grep "There was a problem reading data from the CD-ROM" $GOCR || true) INSTALL_PROBLEM=$(egrep "(nstallation step fail|he failing step i)" $GOCR || true) + ROOT_PROBLEM=$(egrep "(Giue root password for maintenance|or type Control-D to continue)" $GOCR || true) BUILD_LTSP_PROBLEM=$(grep "The failing step is: Build LTSP chroot" $GOCR || true) echo >> $GOCR rm $GOCR.ppm @@ -980,6 +981,9 @@ monitor_system() { elif [ ! -z "$INSTALL_PROBLEM" ] ; then echo "ERROR: An installation step failed." >> $GOCR exit 1 + elif [ ! -z "$ROOT_PROBLEM" ] ; then + echo "ERROR: System is hanging at boot and waiting for root maintainance." >> $GOCR + exit 1 elif [ ! -z "$BUILD_LTSP_PROBLEM" ] ; then echo "ERROR: The failing step is: Build LTSP chroot." >> $GOCR exit 1 -- cgit v1.2.3-70-g09d2