summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-11-01 12:08:47 +0100
committerHolger Levsen <holger@layer-acht.org>2014-11-01 12:08:47 +0100
commit674fc600746ea5c4fb60576d59240c3a42719fbb (patch)
tree486018459c91b7ff3559bae1e842277b2dca17f0 /bin
parentba02de9cdb2d9bbf3c1e1cbc1c12eea7c614029c (diff)
downloadjenkins.debian.net-674fc600746ea5c4fb60576d59240c3a42719fbb.tar.xz
g-i-i: detect hanging system waiting for root maintainance
Diffstat (limited to 'bin')
-rw-r--r--bin/g-i-installation.sh4
1 files changed, 4 insertions, 0 deletions
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