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

Michał Zegan webczat_200 at poczta.onet.pl
Fri Oct 5 10:08:32 UTC 2018


I am not really sure if you are right and you can concatenate cpio
archives, just be ware! they may be compressed, and in this case you
would rather cat their uncompressed form... I think so at least.

W dniu 05.10.2018 o 09:10, David Anderson pisze:
> 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
> <mailto: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
> 
> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20181005/c57df4c5/attachment-0001.sig>


More information about the systemd-devel mailing list