iPXE discussion forum
Embedded scripts not working - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Embedded scripts not working (/showthread.php?tid=5844)



Embedded scripts not working - Vortex - 2012-09-30 10:25

Using grub4dos, I am trying to boot with the following menu.lst file configuration :

Code:
title iPXE

pxe keep
kernel /IPXE.KRN
initrd /LOAD.IPXE

LOAD.IPXE : ( saved as UNIX text file )

Code:
#!ipxe

dhcp
chain http://192.168.0.200/winpe/boot.ipxe

grub4dos loads IPXE.KRN but LOAD.IPXE is never processed and the computer falls back to the network boot screen :

Code:
Booting command-list

Linux - zImage , setup=0x800 ....

iPXE initializing devices - sis 900_probe...
.
.
ok

iPXE 1.0.0+ (8e4faa) Open Source Network Boot Firmware

Intel UNDI, PXE - 2.0 ( build 082 )

CLIENT MAC ADDR ....

The computer reacquires an IP address from DHCP and the grub4dos menu is presented again.

Removing initrd /LOAD.IPXE from menu.lst works fine and I can hit CTRL+B to to access the command-line mode to boot my .iso
file successfully.

Removing pxe keep does not change the result.

IPXE.KRN is extracted from ipxe.iso

How do I need to configure the menu.lst file to run the script LOAD.IPXE successfully?

Server = Windows XP SP3

Tried also the configuration below but no success ( Embedding via the command line method ) , menu.lst entry :

Code:
title iPXE

kernel /IPXE.KRN dhcp \&\& chain http://192.168.0.200/winpe/boot.ipxe

Testing this method :
Code:
Booting command-list

Linux - zImage , setup=0x800 ....

iPXE initializing devices - sis 900_probe...
.
.
ok

iPXE 1.0.0+ (8e4faa) Open Source Network Boot Firmware

"\&\&" : no such network device
"chain" : no such network device
"http://192.168.0.200/winpe/boot.ipxe" : no such network device

Once again, the computer falls back to the network boot screen :

Code:
Intel UNDI, PXE - 2.0 ( build 082 )

CLIENT MAC ADDR ....

I guess there is a problem with the special characters \&\&


RE: Embedded scripts not working - robinsmidsrod - 2012-10-02 11:12

I believe it should be just && in PXELinux, not \&\&.