Josh Miller wrote:
> What is the recommended solution for avoiding a boot loop when using 
> cobbler with PXE/DHCP?  I'd like to leave the primary boot interface as 
> PXE and have the flexibility to control when a system is rebuilt using 
> cobbler.
>
>
> TIA,
>   

Easy one. Set the following in settings:

pxe_just_once : 1

The cobbler $kickstart_done macro when evaluated in %post will tell 
Cobbler, via mod_python, to delete the PXE configuration for the 
specific system such that it will not netboot again. It does this by 
running the equivalent of:

cobbler system edit --name=foo --netboot-enabled=0

Except that cobbler runs this for you, so you don't have to worry about 
it. It should be the last thing called in %post.

To re-enable the system to pxe-boot again, it's just:

cobbler system edit --name=foo --netboot-enabled=1

--Michael




_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to