From: Michael Prokop Date: Thu, 7 Sep 2023 14:58:46 +0000 (+0200) Subject: Support FAI's newer scripts.log, as used with FAI versions >=6.0 X-Git-Tag: v0.46.0~3 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=74c4bce9cc66d70eff3023b8a048d0228869a12e Support FAI's newer scripts.log, as used with FAI versions >=6.0 Older FAI versions used to log the output of the scripts to shell.log, now as of FAI versions >=6.0 they end up in scripts.log instead, so also check those to identify failures during builds. --- diff --git a/grml-live b/grml-live index 1bb84b6..fa478b8 100755 --- a/grml-live +++ b/grml-live @@ -796,10 +796,16 @@ else grep 'Unable to write mmap - msync (28 No space left on device)' $CHECKLOG/software.log >> $LOGFILE && ERROR=5 fi + # FAI versions <6.0 used to write to shell.log if [ -r "$CHECKLOG/shell.log" ] ; then grep 'FAILED with exit code' $CHECKLOG/shell.log >> $LOGFILE && ERROR=6 fi + # FAI versions >=6.0 always writes to scripts.log + if [ -r "$CHECKLOG/scripts.log" ] ; then + 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