iPXE discussion forum
scriptlet feature and chainloading - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: scriptlet feature and chainloading (/showthread.php?tid=7089)



scriptlet feature and chainloading - k0ldbl00d - 2013-10-31 20:24

I want to chain-load iPXE with pre-built undionly.kpxe from http://boot.ipxe.org, but my DHCP server (Mikrotik RouterOS 6.4) does not support class-based options. My goal is to chainload iPXE and then force it to execute some script (from tftp or http) automatically without need to build it.

Can somebody explain the "scriptlet" dhcp-option to me? I've found some way how to pass it to iPXE encapsulated in DHCP option 175. In iPXE shell I type "dhcp" and then "config" and it seems that "scriptlet" option passes well. But how I can use it?

Or maybe there is another way to do this?


RE: scriptlet feature and chainloading - robinsmidsrod - 2013-11-03 23:25

If your DHCP server doesn't support conditional return behavior, like ISC dhcpd and Microsoft does, then you need to embed a script in your iPXE binary. It's the only way I can think of to do it. You can build a custom binary with an embedded script from http://rom-o-matic.eu/ if you don't have access to a Linux environment.