<div class="gmail_quote">On Tue, Jul 26, 2011 at 10:20 AM, Michael Brown <span dir="ltr"><<a href="mailto:mbrown@fensystems.co.uk">mbrown@fensystems.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tuesday 26 Jul 2011 18:05:54 Larry Brigman wrote:<br>
> >> I would suggest something like:<br>
> >><br>
> >>     kernel /boot/ipxe.lkrn \<br>
> >>        ifopen net0 && \<br>
> >>        set net0/ip 192.168.0.3 && \<br>
> >>        set net0/netmask 255.255.255.0 && \<br>
> >>        set net0/gateway 192.168.0.1 && \<br>
> >>        chain <a href="http://my.server/my.script" target="_blank">http://my.server/my.script</a><br>
><br>
</div><div class="im">> Is there some options that need to be set inside of ipxe to allow the<br>
> command-line to take like the embedded script?<br>
> How do you determine what is in the embedded script?<br>
<br>
</div>You specify the iPXE initial command line by appending it to the "kernel" line<br>
in the grub configuration file, as shown in the example I gave you.<br>
<br>
As I said previously, you cannot pass an iPXE script in an initrd image, but<br>
you can use the initial command line to get much the same effect.<br>
<br>
If you are finding that your initial command line is being ignored, you can try<br>
enabling DEBUG=cmdline to see what iPXE is picking up from grub.  To build<br>
from source:<br>
<br>
  make bin/ipxe.lkrn DEBUG=cmdline<br>
<br>
or you can use a prebuilt binary from<br>
<br>
  <a href="http://build.ipxe.org/ipxe.lkrn?DEBUG=cmdline" target="_blank">http://build.ipxe.org/ipxe.lkrn?DEBUG=cmdline</a><br>
<font color="#888888"><br>
Michael<br>
</font></blockquote></div>Sorry, I should have been clearer.  The command line I put in was similar to yours but it didn't work.<br>I replace ipxe with the debug version and it didn't find the command line.<br>I got:<br>
CMDLINE found ""<br>CMDLINE using ""<br>CMDLINE freeing command line<br><br>Here is my grub kernel line (its a single line in the file):<br>kernel /ipxe.lkrn ifopen net4 && set net4/ip 134.242.160.142 && set net4/netmask 255.255.252.0 && set net4/gateway 134.242.160.254 && sanboot <a href="http://10.109.0.46/repo/RHEL6/rhel-server-6.0-x86_64-dvd.iso">http://10.109.0.46/repo/RHEL6/rhel-server-6.0-x86_64-dvd.iso</a><br>
<br>I use options on the kernel line for our boot of the kernel that gets picked up so grub is<br>not at fault here.<br>