Subject: bug#916: [devuan-dev] bug#916: /usr/share/initramfs-tools/hooks/kmod broken on armhf for kernels with CONFIG_MODULE_DECOMPRESS

From: David Kuehling <[email-masked]>
Date: Wed, 22 Oct 2025 13:07:39 +0000

Mark Hindley <[email-masked]> writes:

> On Wed, Oct 22, 2025 at 12:29:47PM +0000, David Kuehling wrote:
>> on armhf, the initramfs-hook of kmod fails intermittently, when the
>> kernel is compiled with CONFIG_MODULE_DECOMPRESS.  This prevents
>> update-initramfs from creating any initrd images.
>> 
>> The failure is triggered by these lines:
>> 
>>           copy_exec /usr/lib/*-linux-gnu/liblzma.so.5
>>           copy_exec /usr/lib/*-linux-gnu/libzstd.so.1
>
> The comment above those lines[1] suggest this is for CONFIG_MODULE_DECOMPRESS=n?

You are right, the condition to trigger this bug is more complex than I
thought.  The kernel nedes to be compiled with
CONFIG_MODULE_COMPRESS_ALL (i.e. turning all modules into *.ko.xz
files), then CONFIG_MODULE_DECOMPRESS needs to be disabled, requiring
the userspace to decompress modules for loading.

[..]
> Please report to Debian's BTS for resolution. The reportbug(1) --bts=debian
> option might be useful.

I see, will do so now.

cheers,

David