Control: reassign -1 src:kmod 30+20221128-1
Control: found -1 33+20240816-2
Control: affects -1 initramfs-tools-core
Control: retitle -1 kmod: modprobe --show-depends may not show all softdeps

On Wed, 27 Dec 2023 12:36:45 +0000 hastalavista_deb...@murena.io wrote:
> Package: initramfs-tools-core
> Version: 0.142
> Severity: important
> 
> mkinitramfs fails to detect that kernel module `xxhash_generic` should be
> installed to init ramdisk, when the rootfs is on a btrfs filesystem with
> checksum algorithm xxhash, and the disk partition table is msdos. This 
> resulted
> in the system being unbootable because the init ramdisk lacks kernel xxhash
> support:
[...]

initramfs-tools uses modprobe to find the dependencies of each module it
installs.

The modinfo for btrfs includes:

    softdep:        pre: blake2b-256
    softdep:        pre: sha256
    softdep:        pre: xxhash64
    softdep:        pre: crypto-crc32c

But when we run:

    version=$(uname -r)
    /sbin/modprobe --all --set-version="${version}" --quiet --show-depends btrfs

the results are:

    insmod /lib/modules/6.1.0-31-amd64/kernel/arch/x86/crypto/crc32c-intel.ko 
    insmod /lib/modules/6.1.0-31-amd64/kernel/crypto/crc32c_generic.ko 
    insmod /lib/modules/6.1.0-31-amd64/kernel/lib/libcrc32c.ko 
    insmod /lib/modules/6.1.0-31-amd64/kernel/lib/zstd/zstd_compress.ko 
    insmod /lib/modules/6.1.0-31-amd64/kernel/lib/raid6/raid6_pq.ko 
    insmod /lib/modules/6.1.0-31-amd64/kernel/crypto/xor.ko 
    insmod /lib/modules/6.1.0-31-amd64/kernel/crypto/blake2b_generic.ko 
    insmod /lib/modules/6.1.0-31-amd64/kernel/fs/btrfs/btrfs.ko 

It seems like only the first softdep is being processed.  (libcrc32c is
a regular dependency so I don't think the crc32c modules are being found
via the softdep on crypto-crc32c.)

Ben.

-- 
Ben Hutchings
Any smoothly functioning technology is indistinguishable
from a rigged demo.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to