<div dir="auto"><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Wed, 12 Aug 2020, 13:30 Michael Brown, <<a href="mailto:mcb30@ipxe.org">mcb30@ipxe.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12/08/2020 08:50, Etienne Champetier wrote:<br>
>>> The automagical construction of CPIO archives is indeed for legacy BIOS<br>
>>> only. On UEFI, we provide the kernel with a virtual filesystem from<br>
>>> which it can load arbitrary files without needing a CPIO wrapper.<br>
> <br>
> Do you have a working exemple (maybe I need a special path) ?<br>
> Does it need a recent kernel ? (I think I did my tests with CentOS 7 kernel)<br>
> Does it need a specific ipxe compile option ?<br>
<br>
No specific iPXE compile option. Any kernel built with CONFIG_EFI_STUB <br>
should work, which includes all current distro kernels as far as I know.<br>
<br>
Any image downloaded by iPXE will be available within the virtual <br>
filesystem using the filename as shown by "imgstat". Linux can access <br>
these files using the initrd= kernel command-line argument.<br>
<br>
In the most simple example, something like:<br>
<br>
#!ipxe<br>
kernel <a href="http://boot.ipxe.org/demo/vmlinuz" rel="noreferrer noreferrer" target="_blank">http://boot.ipxe.org/demo/vmlinuz</a> initrd=initrd.img<br>
initrd <a href="http://boot.ipxe.org/demo/initrd.img" rel="noreferrer noreferrer" target="_blank">http://boot.ipxe.org/demo/initrd.img</a><br>
boot<br>
<br>
From memory, the initrd= option supports a comma-separated list. I <br>
can't immediately find documentation to support this, though.<br>
<br>
Michael<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If one wants to add a extra configuration file as well, the extra cpio header needs to be added to that file to work in efi mode.</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote></div></div>