On Fri, 2025-04-11 at 20:52 +0200, Marco d'Itri wrote: > On Apr 09, Hristo Venev <hri...@venev.name> wrote: > > > One reason to depend on decompression libraries is so that they are > > added to the initramfs -- otherwise we end up with an initramfs > > that is > > unable to decompress .xz-compressed modules. > Did you actually test this? If this really happens then it can be > better > fixed in /usr/share/initramfs-tools/hooks/kmod by checking if > compressed > modules are being installed in the initramfs.
Yes, I tested it. On a kernel built with CONFIG_MODULE_DECOMPRESS=n modules were not being loaded and I was dropped at the initramfs shell. I fixed it by adding a hook with copy_exec /usr/lib/*-linux-gnu/liblzma.so.5 but I'm not sure what the best way to detect the path is.