On Tue, Feb 9, 2010 at 6:16 AM, Shao Miller <span dir="ltr"><<a href="mailto:Shao.Miller@yrdsb.edu.on.ca" target="_blank">Shao.Miller@yrdsb.edu.on.ca</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Luca wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
I wanted to pass some parameters to gPXE, when it starts. As I do not want to rebuild the gPXE image every time with a new script...<br>
</blockquote>
<br>
Would the InitRD+CmdLine feature be useful to you? <a href="http://etherboot.org/share/sha0/gpxe/src/bin/gpxe.lkrn" target="_blank">http://etherboot.org/share/sha0/gpxe/src/bin/gpxe.lkrn</a><br>
</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This gPXE build is a "Linux kernel"-format binary which you can load with any bootloader capable of loading Linux kernels (bzImage). You can pass a gPXE script as an initrd and this gPXE will find it.<br>
<br>
For GRUB, that might look like:<br>
<br>
title Load gPXE<br>
kernel /gpxe.lkrn<br>
initrd my_script.gpxe<br>
<br></blockquote><div><br>So if I got it right, I would keep using the same gPXE image and I would just change the gpxe script at every boot. <br><br>Problem is that script is generated by a central entity just before a workstation is gPXE booted so I can't store the script on the workstation, I need gPXE to contact a remote server and get it.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I don't know if that's useful to you or not. Can be handy with QEmu without constantly rebuilding gPXE.<br>
<br>
# qemu -kernel gpxe.lkrn -initrd my_script -hda /dev/null<br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Disclaimer: All claims and opinions are solely those of myself and do not and should not be perceived as representing the Etherboot nor the gPXE projects in any way. Thank you for your understanding.<br><font color="#888888">
<br>
- Shao Miller<br>
<br>
<br>
</font></blockquote></div><br>