[ipxe-devel] Default path in IPXE chain command

Christian Nilsson nikize at gmail.com
Tue Jan 15 23:38:11 UTC 2019


On Wed, 16 Jan 2019 at 00:30, Lee Turchin
<lee.turchin at hitachivantara.com> wrote:
>
> Hi,
>
> I need to figure out the default search path for configuring IPXE
>
>
>
> I receive an error that files cannot be located during TFTP boot.
>
> Chain command in bootstrap.ipxe is the below.  Please note the first line- chain http://172.17.11.119:8150/svc/boot?  Where is the /svc/boot directory location supposed to be on a CentOS 7 system? How do I change that to a viable directory and/or create that same directory with the correct files?
>
>
>
> Thank you,
>
>
>
> Lee turchin
>
>
>
> chain http://172.17.11.119:8150/svc/boot?net0=${net0/mac:hexhyp}&net1=${net1/mac:hexhyp}&net2=${net2/mac:hexhyp}&net3=${net3/mac:hexhyp}&dhcp_mac=${dhcp_mac}&serial=${serial}&asset=${asset}&uuid=${uuid}&fact_boot_type=${platform} || goto error
>

in iPXE there is no default search path, default filename or anything similar.
It is configured via dhcp options, or possibly embeded script.

Your example chain command would load the next iPXE script.
So there is no correct path, or correct files for iPXE
But depending on your goal there might be a "required" set of files.

Also a note of your chain command... if you replace
net0=${net0/mac:hexhyp} and it's friends with net=${netX/mac:hexhyp}
you will get the last opened interface.
for example if dhcp runs before this and net0 and net1 fails but net2
succeds, you would get the data for net2.
Also remember to escape serial and uuid - since they might contain
some for url none well handled chars.



More information about the ipxe-devel mailing list