• Bug#1099801: libkmod2: missing dependencies on compression libraries

    From Hristo Venev@21:1/5 to All on Wed Apr 9 00:20:01 2025
    Package: libkmod2
    Version: 34.2-1
    Followup-For: Bug #1099801
    X-Debbugs-Cc: hristo@venev.name

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco d'Itri@21:1/5 to Hristo Venev on Fri Apr 11 21:00:01 2025
    On Apr 09, Hristo Venev <hristo@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.

    --
    ciao,
    Marco

    -----BEGIN PGP SIGNATURE-----

    iHUEABYKAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCZ/lk4QAKCRDLPsM64d7X gT5gAQCxnolQPNMZqdM7gS002m1RMeJ6Zok0dGzvueMntXXvTAEAy+uug36DJdT1 HdTp5PuEiV0dzDVtfZ9zaOz7+MIDzgs=
    =g5jl
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hristo Venev@21:1/5 to Marco d'Itri on Sat Apr 12 02:40:01 2025
    On Fri, 2025-04-11 at 20:52 +0200, Marco d'Itri wrote:
    On Apr 09, Hristo Venev <hristo@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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco d'Itri@21:1/5 to Hristo Venev on Mon Apr 14 01:00:01 2025
    On Apr 12, Hristo Venev <hristo@venev.name> wrote:

    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.
    Yes, that's the issue: Debian kernels define CONFIG_MODULE_DECOMPRESS
    and custom kernels may not be well supported.

    Please copy this updated hook on your system and let me know if it
    works.

    https://salsa.debian.org/md/kmod/-/blob/master/debian/kmod.initramfs-hook

    --
    ciao,
    Marco

    -----BEGIN PGP SIGNATURE-----

    iHUEABYKAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCZ/xAbwAKCRDLPsM64d7X gZD+AP94LS/5xbOUR9eDkNc4ATHmaom4tpTv4NdYtniZTXmwxAEAx+IjDjOP2fK1 mzaix0tWrFBAtMlk7j9mPmVfHiCTiQM=
    =qkWF
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)