<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 23, 2016 at 6:47 PM, Shao Miller <span dir="ltr"><<a href="mailto:sha0.miller@gmail.com" target="_blank">sha0.miller@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2/23/2016 06:53, Gene Cumm wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Yes, you can have iPXE on the ISO but it needs to be loaded by the<br>
boot loader on the ISO (most commonly ISOLINUX or GRUB). Unless<br>
someone has a more compact solution, I think you'll need a copy of<br>
iPXE for each profile and each copy will have an embedded custom<br>
script. I don't know if iPXE accepts any kernel command line<br>
parameters when it is loaded, ie "ipxe.lkrn mycommand myparameter".<br>
<br>
</blockquote>
<br></span>
Once upon a time, there was this[1] for both "initrd"s as well as command-line arguments (which would be commands), but I don't think it was ever merged.<br>
<br>
- Shao Miller<br>
Synthetel: <a href="https://www.synthetel.com" rel="noreferrer" target="_blank">https://www.synthetel.com</a><br>
<br>
[1] <a href="http://git.etherboot.org/people/sha0/gpxe.git/shortlog/refs/heads/cmdline_initrd" rel="noreferrer" target="_blank">http://git.etherboot.org/people/sha0/gpxe.git/shortlog/refs/heads/cmdline_initrd</a></blockquote><div><br></div><div>Thought I'd chime in here:</div><div><br></div><div>I don't know if you can feed iPXE a direct command line from the bootloader, but you _can_ feed it a script file via initrd like so (in GRUB4DOS):</div><div><br></div><div>initrd script.ipxe</div><div>kernel ipxe.lkrn</div><div>boot</div><div><br></div><div>Then the contents of script.ipxe will of course be whatever you need to chain to Cobbler. I'd suggest:</div><div><br></div><div>#!ipxe</div><div>dhcp ||</div><div>chain tftp://cobbler.server/boot.file ||</div><div><br></div><div>The script should probably be a little smarter, and you might need/want to set the $next-server variable in there.</div><div><br></div><div>Regardless, you can modify that script file, or have a number of them at the ready to use in a boot menu that you put on the USB stick/CD you boot your machines from.</div><div><br></div><div>Regards,</div><div>Andrew</div></div></div></div>