Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Refreshing an iPXE Web Menu...
2013-06-07, 04:51 (This post was last modified: 2013-06-07 14:16 by MultimediaMan.)
Post: #1
Refreshing an iPXE Web Menu...
Modern servers with lots of RAM can take a long time to boot.

Debugging iPXE scripts on real metal is a fact of life as part of testing. So what to do for this?

This little trick will save you some time if you have a static script that you are working on, with a running iPXE client accessing it.

Assumption:

Your script is named default.ipxe

In the menu place a selection like so...

Code:
item refresh_me        Refresh Menu

:refresh_me

chain -ar ${17}/NetBoot/iPXE/default/default.ipxe

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
2013-06-07, 13:17
Post: #2
RE: Refreshing an iPXE Web Menu...
(2013-06-07 04:51)MultimediaMan Wrote:  In the menu place a selection like so...

Code:
item refresh_me        Refresh Menu

:refresh_me
chain ${17}/NetBoot/iPXE/default/default.ipxe

That's a nice development technique.

I would suggest two minor changes:
  • use the undocumented "chain -ar" option (--autofree and --replace); this will prevent iPXE from running out of memory after several iterations
  • omit the path and use just "chain -ar default.ipxe"; non-absolute paths are automatically treated as being relative to the current script URI anyway.

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
2013-06-07, 14:17
Post: #3
RE: Refreshing an iPXE Web Menu...
(2013-06-07 13:17)mcb30 Wrote:  
(2013-06-07 04:51)MultimediaMan Wrote:  In the menu place a selection like so...

Code:
item refresh_me        Refresh Menu

:refresh_me
chain ${17}/NetBoot/iPXE/default/default.ipxe

That's a nice development technique.

I would suggest two minor changes:
  • use the undocumented "chain -ar" option (--autofree and --replace); this will prevent iPXE from running out of memory after several iterations
  • omit the path and use just "chain -ar default.ipxe"; non-absolute paths are automatically treated as being relative to the current script URI anyway.

Michael

And done. Thanks, Michael!

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
2013-06-11, 15:39
Post: #4
RE: Refreshing an iPXE Web Menu...
(2013-06-07 13:17)mcb30 Wrote:  use the undocumented "chain -ar" option (--autofree and --replace); this will prevent iPXE from running out of memory after several iterations

woo hoo !!

I'd forgotten about having exactly that problem when I was struggling with the default gateway
Find all posts by this user
Quote this message in a reply
Post Reply 




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