Mein "action.DEFAULT" sieht so aus: #!/bin/bash -x
echo HOOK $0 [ -z $FAI_HOST_FQDN ] && echo "FEHLER \$FAI_HOST_FQDN nicht gesetzt, bitte FAI_CONFIG/class/<Hostname>.var erstellen. ABBRUCH" ; task_error 899 Beim softupdate kommt folgendes: ... Calling hook: action.DEFAULT + echo HOOK /var/lib/fai/config/hooks/action.DEFAULT HOOK /var/lib/fai/config/hooks/action.DEFAULT + '[' -z ']' + echo 'FEHLER $FAI_HOST_FQDN nicht gesetzt, bitte FAI_CONFIG/class/<Hostname>.var erstellen. ABBRUCH' FEHLER $FAI_HOST_FQDN nicht gesetzt, bitte FAI_CONFIG/class/<Hostname>.var erstellen. ABBRUCH + task_error 899 + '[' X = X0 ']' + task_error_func='task_error main' + '[' 899 -gt 0 ']' + task_error=899 + '[' 899 -gt 700 ']' + stop_fai_installation + sendmon 'TASKEND action 899' + '[' 0 -eq 0 ']' + return 0 + echo 'Error in task action. Traceback: task_error main' Error in task action. Traceback: task_error main + die 'FATAL ERROR. Installation stopped.' + task_savelog + mkdir -p //var/lib/fai //var/log/fai + fai-savelog -l + '[' -f /var/log/fai/ra0656/softupdate-20150216_161801/FAI_CLASSES ']' + '[' -f /var/log/fai/ra0656/softupdate-20150216_161801/disk_var.sh ']' + fai-savelog -r + echo 'FATAL ERROR. Installation stopped.' FATAL ERROR. Installation stopped. + '[' Xsoftupdate = Xinstall ']' + exit 99 action.DEFAULT FAILED with exit code 99. Calling task_action FAI_ACTION: softupdate Performing FAI system update. All data may be overwritten! ... Und hier läuft es dann weiter als ob nichts weiter war... Reiner Schulz 1. Re: task_error bei softupdate (Thomas Lange) ---------------------------------------------------------------------- Message: 1 Date: Mon, 9 Feb 2015 16:57:17 +0100 From: Thomas Lange <[email protected]> To: fully automatic installation for Linux <[email protected]> Subject: Re: task_error bei softupdate Message-ID: <[email protected]> Content-Type: text/plain; charset=iso-8859-1 >>>>> On Fri, 23 Jan 2015 15:53:32 +0000, "Schulz, Reiner" <[email protected]> >>>>> said: > Wenn meine Pr?fung fehlschl?gt und ich abbrechen m?chte, rufe ich > task_error 899 > Wenn ich die dann beende, l?uft der Rest des softupdate weiter. > Wie kann ich fai abbrechen? Mmm, das scheint ein Bug zu sein. Kannst du das mal mit bash -x /usr/sbin/fai softupdate debuggen? -- regards Thomas ------------------------------ Subject: Digest Footer _______________________________________________ linux-fai mailing list [email protected] https://lists.uni-koeln.de/mailman/listinfo/linux-fai ------------------------------ End of linux-fai Digest, Vol 92, Issue 4 ****************************************
