iPXE discussion forum
How to use script when chainloading from UEFI GRUB - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: How to use script when chainloading from UEFI GRUB (/showthread.php?tid=7905)



How to use script when chainloading from UEFI GRUB - dthatcher - 2016-01-08 20:39

Greetings,

I have a UEFI bootable USB stick which I want to use to load iPXE and run a custom script.
Here is the GRUB2 entry:

menuentry "iPXE"{
search --no-floppy --set=root -f /live/ipxe.efi
chainloader /live/ipxe.efi + 1
}

I have placed a plain text file script at /live/script.ipxe but it doesn't see the script. What do I have to do?

Thanks,
David


RE: How to use script when chainloading from UEFI GRUB - mcb30 - 2016-01-15 08:29

(2016-01-08 20:39)dthatcher Wrote:  I have a UEFI bootable USB stick which I want to use to load iPXE and run a custom script.
Here is the GRUB2 entry:

menuentry "iPXE"{
search --no-floppy --set=root -f /live/ipxe.efi
chainloader /live/ipxe.efi + 1
}

I have placed a plain text file script at /live/script.ipxe but it doesn't see the script. What do I have to do?

UEFI iPXE does not currently have the ability to load images (e.g. scripts) from a local UEFI filesystem. This is planned to be implemented. In the meantime, you'll have to build ipxe.efi with your script embedded (via the EMBED=... build option).

Michael