Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
relative tftp path for embedded script, pxelinux.0 behaviour
2012-07-24, 19:33
Post: #5
RE: relative tftp path for embedded script, pxelinux.0 behaviour
(2012-07-24 18:45)robinsmidsrod Wrote:  Relative paths should work.
Relative paths work in downloaded scripts. Relative paths do not work in embedded script. I need relative paths in embedded script.

I put undionly.kpxe into $TFTPROOT/long/long/path/
I put script default.ipxe into the same directory.
I specify in 067 dhcp option "long/long/path/undionly.kpxe".
I embed script into undionly.kpxe:
Code:
#!ipxe
dhcp
chain default.ipxe

It does NOT work. It searches for default.ipxe in tftp root. Because relative paths do NOT work in embedded script.

Ok, I embed script with path:
Code:
#!ipxe
dhcp
chain long/long/path/default.ipxe

It works.

In $TFTPROOT/long/long/path/default.ipxe i write:

Code:
#!ipxe
chain default.ipxe

And it works without full path. Because relative paths work in downloaded scripts.

I need relative paths in embedded script.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: relative tftp path for embedded script, pxelinux.0 behaviour - aka - 2012-07-24 19:33



User(s) browsing this thread: 4 Guest(s)