Check for failed updatebase and instsoft hook executions
authorMichael Prokop <mika@grml.org>
Thu, 3 Jul 2014 14:03:04 +0000 (16:03 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 3 Jul 2014 14:04:14 +0000 (16:04 +0200)
grml-live

index cce5a68..84ef39c 100755 (executable)
--- 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'"