Not reboot/halt after successful installation
Steffen Grunewald
Steffen.Grunewald at aei.mpg.de
Mon Jul 25 17:01:06 CEST 2016
Hello,
according to the HTML user guide, there seems to be no option to "not reboot" a node that
successfully finished a sysinfo or install run - except to add something to the error log
forcefully (e.g. in a "last" hook).
Citing the guide, "reboot: ... If this flag is not set, and error.log contains anything,
the install client will stop and wait that you press RETURN. If no errors occurred, the
client will always reboot automatically." (similar for halt).
I have found an old patch I used to apply to FAI 3.x (with boot=live) that deactivated
the check of the error log, and stopped if neither "reboot" nor "halt" were requested:
--- ./live/filesystem.dir/usr/lib/fai/subroutines.ORIG 2012-06-26 14:31:51.000000000 +0000
+++ ./live/filesystem.dir/usr/lib/fai/subroutines 2012-08-15 06:32:48.384327045 +0000
@@ -510,12 +510,10 @@
: ${flag_halt:=0}
# reboot/halt without prompting if FAI_FLAG reboot or halt is set and errors are found
- # wait for keypress if error is found and neither flag reboot nor halt is set
- if [ -s $LOGDIR/error.log -a "$flag_reboot" -eq 0 -a "$flag_halt" -eq 0 ]; then
+ # wait for keypress if error is neither flag reboot nor halt is set - ignore errors
+ if [ "$flag_reboot" -eq 0 -a "$flag_halt" -eq 0 ]; then
echo "Press <RETURN> to reboot."
read
- else
- sleep 10
fi
sendmon "TASKEND faiend 0"
/usr/lib/fai/subroutines in a jessie nfsroot seems not to check the size of error.log
(nor can I find a mention of error.log in any other place). Is the (5.0) user guide wrong,
or do I have to look in the right places for a change?
Cheers,
Steffen
--
Steffen Grunewald, Cluster Administrator
Max Planck Institute for Gravitational Physics (Albert Einstein Institute)
Am Mühlenberg 1
D-14476 Potsdam-Golm
Germany
~~~
Fon: +49-331-567 7274
Fax: +49-331-567 7298
Mail: steffen.grunewald(at)aei.mpg.de
~~~
More information about the linux-fai
mailing list