Wednesday, 8 December 2021

Re: Revisiting default initramfs compression



On Thu, 9 Dec 2021 at 08:52, Julian Andres Klode <julian.klode@canonical.com> wrote:
The most interesting solution would be to create the cpip archive
dynamically by giving cpio a list of files over a pipe that we create
dynamically in the hooks as we copy files in, then pipe that to zstd
--adapt; then it would all work super nicely.

If we're going to spend significant effort, I think I'd prefer we try to find a way to not recompress the modules when making the initrd at all, at least for MODULES=most builds. We could just ship a zstd -19'ed MODULES=most cpio archive in the kernel packaging and have four layers of initrd (intel firmware, amd64 firmware, modules, everything else) but that would bloat the kernel package rather a lot...

Cheers,
mwh