[ipxe-devel] unable to chain to a script

Michael Brown mbrown at fensystems.co.uk
Wed Dec 8 18:56:46 UTC 2010


On Wednesday 08 Dec 2010 17:20:22 Duane Voth wrote:
> Ah, ok, my source has been saying http://ipxe.org/2e008001 - the text on
> the real error page is quite helpful - yes I was missing the she-bang
> line.  The fetched script now registers as a script.

Great!  Glad to hear it!

> What was surprising tho is that all fetches in the fetched script are
> relative to base directory of the script!  Is this the expected behavior?

Yes, that behaviour is by design.  They are treated as relative URLs.  For 
example, if your script is at http://192.168.0.1/boot/script.ipxe, then:

  "imgfetch filename" would fetch http://192.168.0.1/boot/filename

  "imgfetch /filename" would fetch http://192.168.0.1/filename

The idea behind this is that it allows scripts and files they reference to be 
distributed as a single package, without the script needing to know details of 
the location from which it is being served.

Michael



More information about the ipxe-devel mailing list