On Fri, 7 Mar 2025 20:43:08 +0100 Marc Haber
<mh+debian-b...@zugschlus.de> wrote:
On Fri, Mar 07, 2025 at 05:44:00PM +0100, Eric Valette wrote:
CONFIG_MODULE_DECOMPRESS=y
So the culprit is there. It is not set in my own kernel build (never
been so far although config has been created via the official
linux-source-6.6) and thus I cannot load compressed modules without user
space helpers that probably not exist in initrd busybox version. Of
course I can load compressed modules once the pivot_root/switch_root is
done.
So it remains a bug because the script store compressed modules in
initrd without checking this compilation flag and the kernel does not
boot. If was not doing this in 145. This is the reason for the bug I have.
A second bug is that the initrd does not seems to be compressed while
config says it should be with zstd (and the CONFIG_RD_* is ok). I can
change to xz.
A third one is that compressing compressed file is not efficient in term
of size. There has been bug opened exactly on this theme on other
distributions.
Additional note : enabling this compilation flags, cause the signature
of external modules to be incorrect as XZ with this flag *must* be used
with CRC32 checksum and not the xz default CRC64. I had to add
--check=crc32 to my signature scripts for external modules.
So I would recommend compressing the initrd image and not modules
themselves.
--
Eric Valette