On 09/10/2009 02:19 PM, Paul Company wrote:
I'm running cobbler 1.6.6 on RHEL 5.3
I've read
https://fedorahosted.org/cobbler/wiki/ModPythonDetails
It states:
The following URL, if pxe_just_once is enabled in settings, is called
via wget in post to prevent an infinite PXE boot loop.
http://server/cblr/svc/op/nopxe/system/$name_of_system
Reading /etc/cobbler/settings states that pxe_just_once toggles the
--netboot-enabled record in the cobbler system record.
How do I find the code that does the actual work?
What exactly gets modified to prevent an infinite PXE boot loop?
/etc/grub.conf ?
/tftpboot/ ?
Your tftpboot directory, which is either /tftpboot or /var/lib/tftpboot
Is there a url to set --netboot-enabled to True?
$kickstart_done expands to something that will call this if so enabled
in settings. You must restart cobblerd after making changes to settings
for this to be applied.
If correctly enabled you will see a wget involving "nopxe" if you do:
cobbler system getks --name=foo
for a system that still has netboot-enabled set to True.
I know I can do this
# cobbler system edit --name=$name_of_system --netboot-enabled=True
but is there a way to do it through the web ui?
Yes. There is a checkbox on the systems edit page and in later versions
of cobbler you can do that from the system list page via batch actions.
I find it very difficult to trace through mod_python invocations.
I've read /var/www/cobbler/svc/services.py but I still find it difficult to
follow things down to the code that actually does the work.
The function in question is:
def nopxe(self,system=None,**rest):
Thanks,
Paul
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler