Package: kmod
Version: 34.2-2
File: /usr/share/initramfs-tools/hooks/kmod

Hi,

on armhf, the initramfs-hook on kmod now fails intermittently, when the
kernel is compiled with CONFIG_MODULE_DECOMPRESS=n and
CONFIG_MODULE_COMPRESS_ALL.  I.e. if all modules are present as .ko.xz
files, and userspace is required to decompress those.  This prevents
update-initramfs from creating any initrd images.

The failure is triggered by the lines you added when fixes this bug:

          copy_exec /usr/lib/*-linux-gnu/liblzma.so.5
          copy_exec /usr/lib/*-linux-gnu/libzstd.so.1

There is no /usr/lib/*-linux-gnu directory on armhf.  The directory is
named /usr/lib/arm-linux-gnueabihf here.  Likely other Debian
architectures are affected as well.

I fixed the issue for me by changing these wildcards to

          copy_exec /usr/lib/*-linux-gnu*/liblzma.so.5
          copy_exec /usr/lib/*-linux-gnu*/libzstd.so.1

Not that I really understand the implications of that change :)

cheers,

David

PS thanks to Mark Hindley for tracking down this issue to this bug fix.

-- System Information:
Distributor ID: Devuan
Description:    Devuan GNU/Linux 6 (excalibur)
Release:        6
Codename:       excalibur
Architecture: armv7l

Kernel: Linux 6.12.53-dk2 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages kmod depends on:
ii  libc6       2.41-12
ii  libkmod2    34.2-2
ii  libssl3t64  3.5.1-1+deb13u1

kmod recommends no packages.

kmod suggests no packages.

Reply via email to