i try to setup and ipxe chainloading configuration and have succsefull setup the pxe boot from the turris wiki…
next step would be to configure the ipxe chainloading like explained ln the official ipxe doc here
but i dont know where to put the “if else” directive for the dhcp
my working pxe boot in /etc/config/dhcp looks like this
config boot 'linux'
option filename 'pxelinux.0'
option serveraddress '192.168.0.1'
option servername 'turris'
so where to put?
if exists user-class and option user-class = "iPXE" {
filename "http://my.web.server/real_boot_script.php";
} else {
filename "undionly.kpxe";
}
help would appreciated
thanks