X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=grml-live;h=4fbed190d207bba94f102943d6c849b55ba1075f;hp=f781b62b81e62b5ceb7fd2c5ec35e9366f140326;hb=c62c80321335cf42ee4c04922c801ad963c1fd5a;hpb=a49504d976dc57d6c50be3a632a98acacdac962d diff --git a/grml-live b/grml-live index f781b62..4fbed19 100755 --- a/grml-live +++ b/grml-live @@ -174,6 +174,7 @@ while getopts "c:g:i:o:r:s:t:v:FhV" opt; do done shift $(($OPTIND - 1)) # set ARGV to the first not parsed commandline parameter +echo "Executing: $(basename $0) $*" >> $LOGFILE # }}} # some misc checks before executing FAI {{{ @@ -267,6 +268,7 @@ else # notice: 'fai dirinstall' does not seem to exit appropriate, so: ERROR='' if [ -r "/var/log/fai/dirinstall/$HOSTNAME/software.log" ] ; then + # 1 errors during executing of commands grep 'dpkg: error processing' /var/log/fai/dirinstall/$HOSTNAME/software.log >> $LOGFILE && ERROR=1 grep 'E: Method http has died unexpectedly!' /var/log/fai/dirinstall/$HOSTNAME/software.log >> $LOGFILE && ERROR=2 grep 'ERROR: chroot' /var/log/fai/dirinstall/$HOSTNAME/software.log >> $LOGFILE && ERROR=3