Re: load a script from gpxe boot

Stefan Hajnoczi <[email protected]> Wed, 14 Oct 2009 07:47:26 +0100
Newsgroups gmane.network.etherboot.user
Message-ID <[email protected]>
On Mon, Oct 12, 2009 at 8:48 AM, Jean Spirat <[email protected]> wrote:
>  i saw that we have possibility to have scripts embeded in an image and
> i wanted to know if there is a way to include a script from a script.

Yes this is possible.  Use the 'chain' command in your embedded script:
#!gpxe
dhcp net0
chain http://mydomain.com/serverscript.php?mac=${net0/mac}

A gPXE script is an image that can be loaded/executed, just like
bzImage, multiboot, and the other supported image formats.

Stefan

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference