Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PXE Dispatcher for iPXE
2011-04-05, 18:24
Post: #2
RE: PXE Dispatcher for iPXE
(2011-04-05 18:10)robinsmidsrod Wrote:  I have created a simple Perl-based script which can be hooked into any web server that supports a standard CGI interface.

Very neat. I especially like the idea of sending back a fixed script that causes iPXE to call the same CGI script again but with additional parameters for ${uuid} etc.

(2011-04-05 18:10)robinsmidsrod Wrote:  And for that to work I have a separate file named /srv/tftp/pxeboot/freedos.pxe with the following code in it:
Code:
#!ipxe
echo
echo Booting FreeDOS for ${hostname} from SAN
set keep-san 1
set root-path iscsi:nas.smidsrod.lan::::iqn.2011-02.lan.smidsrod:${hostname}.boot.freedos
sanboot ${root-path}
echo Boot from ${root-path} failed, dropping to shell
shell

You need something like

Code:
sanboot ${root-path} ||

to prevent the script from exiting immediately if the sanboot command fails.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: PXE Dispatcher for iPXE - mcb30 - 2011-04-05 18:24
RE: PXE Dispatcher for iPXE - mcb30 - 2011-04-05, 20:22
RE: PXE Dispatcher for iPXE - mcb30 - 2011-04-06, 00:01
RE: PXE Dispatcher for iPXE - Sha0 - 2011-08-08, 15:46



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