iPXE and syslinux.cfg to run script - 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 and syslinux.cfg to run script (/showthread.php?tid=24995) |
iPXE and syslinux.cfg to run script - praines - 2020-07-17 15:21 I am creating a bootable USB image that uses iPXE built using syslinux. I have a script I want iPXE to automatically run. It works fine if I Embed it when I build the ipxe.lkrn file. But I want to have just a plain (non-embedded) ipxe.lkrn and the script on the USB key so that I can modify it a will. My steps were: Code: cd ipxe/src For EFI I could find now docs on how to have it autorun a script on the usb image itself so I ended up creating bin-x86_64-efi/ipxe.efi with embedded script. Anyone have any ideas here I would love to know. For LEGACY, I tried using syslinux.cfg and the first one I tried was: Code: default ipxeboot This just gave an error from ipxe that /script is an unknown command I then tried Code: default ipxeboot But this failed too saying the chain failed. So I gave up and built ipxe.lkrn with the script embedded which works but makes it harder to change the script when I want Any ideas? I am suprised ipxe does not have an "include" command for |