iPXE discussion forum
iPxe with config file - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: iPxe with config file (/showthread.php?tid=7566)

iPxe with config file - anurag_kumar - 2014-12-23 10:03


I read about the custom scripts, but is there a way i can have a config file/custom script which can be changed later without rebuilding/recompiling the code ?

For example, below is my custom script:
chain http://blahblah.bla/BootServer/boot.cfg

Now in future, if i change my tftp server from blahblah to xyz, so in this case do i still need to rebuild the code with a new script or a simple config change would work ?

Thanks in advance

RE: iPxe with config file - robinsmidsrod - 2014-12-26 11:49

If you build your embedded script pointing to a hostname in the URL it should be fairly simple to ensure all locations resolve this hostname using a DNS A/CNAME record. If you're not able to control the DNS resolution in the network then you need to rebuild whenever you change the IP/hostname. You can use a short hostname, it doesn't need to be a FQDN if your DHCP server replies with proper DNS search lists.