automatic reboot?
Carl J. Van Arsdall
cvanarsdall at mvista.com
Fri Jul 13 23:06:10 CEST 2007
John Heim wrote:
> I'm sorry if this is a stupid question but how do I get a machine to
> automatically reboot itself at the end of a FAI install?
>
> I've put each of the following lines in a script in turn (not all at
> the same time) but none of them worked:
>
> export flag_reboot=1
> flag_reboot=1
> flag_reboot=0
I do it in the FAI_FLAGS that are passed in the pxe config. Example:
overlord:/srv/tftp/fai/pxelinux.cfg# cat x86_template
# template generated by fai-chboot for host node-28 with IP 10.23.5.138
from source /srv/tftp/fai/pxelinux.cfg/0A170589.disable
# generated by fai-chboot for host node-27 with IP 10.23.5.137
default fai-generated
label fai-generated
kernel vmlinuz-install
append ip=dhcp FAI_ACTION=install FAI_FLAGS=reboot root=/dev/nfs
nfsroot=/srv/fai/nfsroot_i386,v3,tcp,rsize=32768,wsize=32768
overlord:/srv/tftp/fai/pxelinux.cfg#
>
> --
> John Heim
> jheim at math.wisc.edu / 608-263-4189
> If you are blind and you use linux, please subscribe to
> blinux-list at redhat.com
>
>
>
--
Carl J. Van Arsdall
cvanarsdall at mvista.com
Build and Release
MontaVista Software
Vision 2007 Embedded Linux Dev Conf Oct 8-10 http://www.mvista.com/vision
More information about the linux-fai
mailing list