Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DHCP passing options/variables to iPXE
2012-08-08, 12:05
Post: #2
RE: DHCP passing options/variables to iPXE
(2012-08-08 11:46)jpwise Wrote:  As I understand it, the scriptlet may actually have to point to a proper ipxe script, but if i break the boot sequence with CTRL-B after the initial undionly.kpxe load, and go into config the scriptlet variable still shows as as <not specified>. Likewise if i let it boot normally to the menu and then go into the config no change. I also tried using some other option variables with the same results.

Firstly, you'll need to issue a new DHCP request from within iPXE before going into config.

Secondly, the scriptlet variable is intended to contain a sequence of iPXE commands: it's an alternative to using an embedded image. It's not relevant to your situation. Use the site-local DHCP options (128-135) instead, e.g.:

Code:
option site-local-128 code 128 = string;

option site-local-128 "http://server.address.com";

and then

Code:
iPXE> dhcp
iPXE> echo ${128:string}

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: DHCP passing options/variables to iPXE - mcb30 - 2012-08-08 12:05



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