Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tftp second file
2013-06-02, 01:38
Post: #1
tftp second file
i would like to compile the ipxe with an embedded script that does

embeddedscript.ipxe
--------------------
#!ipxe
dhcp
read tftp file abc.txt
read first line of abc.txt "runme = http://ipaddress/winpe/boot.ipxe"
then boot runme

so how do i setup the script file and compile this
make embed=embeddedscript.ipxe didn't do anything for me, no compiler errors, and when i ran it, it was the same iso version.

note: on gpxe site i saw:
$ make EMBEDDED_IMAGE=../contrib/scripts/static.gpxe
so can i do something like that ?

PS: it would be nice to get NFS support (seems like it was removed)

thanks
Find all posts by this user
Quote this message in a reply
2013-06-05, 10:08
Post: #2
RE: tftp second file
iPXE doesn't support an eval-like command to load information like that.

You can, however create a separate iPXE script that can be used to customize the boot behavior for a single host, while keeping the boot behavior for all hosts generic. My menu script located at https://gist.github.com/robinsmidsrod/2234639 shows you how to do this particular thing. The bootstrap.ipxe file together with the hostname-XXX.ipxe is how I do it.

There is an NFS branch in mareo's git repo on git.ipxe.org. It is somewhat working, but still has some bugs in it that needs fixing up before it can be merged. The old NFS code from gPXE was never merged into iPXE (not sure why).
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




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