Devuan bug report logs - #916
/usr/share/initramfs-tools/hooks/kmod broken on armhf for kernels with CONFIG_MODULE_DECOMPRESS

version graph

Package: kmod; Maintainer for kmod is (unknown); Source for kmod is src:kmod.

Reported by: David Kuehling <dvdkhlng@posteo.de>

Date: Wed, 22 Oct 2025 12:32:02 UTC

Severity: normal

Tags: debian

Found in version 34.2-2

Forwarded to https://bugs.debian.org/1099801

Full log


Message #10 received at 916@bugs.devuan.org (full text, mbox, reply):

Received: (at 916) by bugs.devuan.org; 22 Oct 2025 12:49:42 +0000
Return-Path: <mark@hindley.org.uk>
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2a01:4f9:fff1:13::5fd9:f9e4]
	by doc.devuan.org with IMAP (fetchmail-6.4.39)
	for <debbugs@localhost> (single-drop); Wed, 22 Oct 2025 12:49:42 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id GaxkIsbS+Gh+MwAAmSBk0A
	(envelope-from <mark@hindley.org.uk>)
	for <bugs@devuan.org>; Wed, 22 Oct 2025 12:49:10 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 554091FB; Wed, 22 Oct 2025 12:49:10 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; envelope-from=mark@hindley.org.uk; receiver=bugs.devuan.org 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id 9337B2B
	for <916@bugs.devuan.org>; Wed, 22 Oct 2025 12:49:09 +0000 (UTC)
Received: from hindley.org.uk (apollo.hindleynet [192.168.1.3])
	by mx.hindley.org.uk (Postfix) with SMTP id 4AA17CD;
	Wed, 22 Oct 2025 13:49:08 +0100 (BST)
Received: (nullmailer pid 24681 invoked by uid 1000);
	Wed, 22 Oct 2025 12:49:07 -0000
Date: Wed, 22 Oct 2025 13:49:07 +0100
From: Mark Hindley <mark@hindley.org.uk>
To: David Kuehling <dvdkhlng@posteo.de>, 916@bugs.devuan.org
Subject: Re: [devuan-dev] bug#916: /usr/share/initramfs-tools/hooks/kmod
 broken on armhf for kernels with CONFIG_MODULE_DECOMPRESS
Message-ID: <aPjSww9WRovOwt3b@hindley.org.uk>
References: <878qh3dsqx.fsf@posteo.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <878qh3dsqx.fsf@posteo.de>
X-Debbugs-No-Ack: No Thanks
Control: tags -1 debian

David,

Thanks for this.

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?

> 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 by the same bug.

As you notice, kmod is not forked in Devuan and we use Debian's packages
directly without recompilation.

The src:kmod d/changelog[2] suggests this code was added to fix Debian
#1099801. Perhaps the fix is wrong or incomplete.

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

Thanks

Mark

[1]  https://salsa.debian.org/md/kmod/-/blob/master/debian/kmod.initramfs-hook?ref_type=heads#L23

[2]  https://tracker.debian.org/media/packages/k/kmod/changelog-34.2-2


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat Dec 13 10:46:56 2025;