[systemd-devel] Multiple initrds in unified kernel images?

David Anderson dave at natulte.net
Fri Oct 5 07:10:07 UTC 2018


And of course, the law of asking questions on the internet is verified, and
I find the answer minutes after asking a thousand people. A Linux initramfs
is a concatenation of cpio archives, so I can just `cat microcode.img
initrd.gz >initrd`, embed that in my unified image, and everything should
just work.

Please let me know if I'm wrong, and otherwise - thanks for being my rubber
ducks!

- Dave

On Fri, Oct 5, 2018 at 12:02 AM David Anderson <dave at natulte.net> wrote:

> Hi,
>
> I'm exploring systemd-boot and secure booting for an Arch Linux install.
> To get secure boot working right, I need to build a unified kernel image
> that I can sign. However, I also need to pass 2 initrd images into the boot
> process (one for CPU microcode, and the proper OS iniramfs).
>
> But, AFAICT from reading the EFI stub source code, I can only have one
> ".initrd" section in my unified binary.
>
> Is it possible to have multiple initrds in a unified kernel image? If so,
> how do I construct the unified image? If not, can you suggest an
> alternative that gets me my microcode and my OS initramfs?
>
> Thanks!
> - Dave
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20181005/34286b1c/attachment.html>


More information about the systemd-devel mailing list