From 1610e49264d91a2c9015583595af1b30c4c2d44a Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 3 Jul 2014 16:03:04 +0200 Subject: [PATCH 1/1] Check for failed updatebase and instsoft hook executions --- grml-live | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grml-live b/grml-live index cce5a68..84ef39c 100755 --- a/grml-live +++ b/grml-live @@ -746,6 +746,11 @@ else grep 'FAILED with exit code' $CHECKLOG/shell.log >> $LOGFILE && ERROR=6 fi + if [ -r "$CHECKLOG/fai.log" ] ; then + grep 'updatebase.*FAILED with exit code' "$CHECKLOG/fai.log" >> "$LOGFILE" && ERROR=7 + grep 'instsoft.*FAILED with exit code' "$CHECKLOG/fai.log" >> "$LOGFILE" && ERROR=8 + fi + if [ -n "$ERROR" ] ; then log "Error: there was a critical error [${ERROR}] during execution of stage 'fai dirinstall' [$(date)]" eerror "Error: there was a critical error during execution of stage 'fai dirinstall'" -- 2.1.4