From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20EC9159C9B for ; Fri, 9 Aug 2024 15:50:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6B1AD2BC01E; Fri, 9 Aug 2024 15:50:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 55A1F2BC01E for ; Fri, 9 Aug 2024 15:50:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 79DB23430E2 for ; Fri, 9 Aug 2024 15:50:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DCE48174C for ; Fri, 9 Aug 2024 15:50:31 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1723218626.5d6d7c6fbacf10a5fbb8d3ea1ab6ec2362ade6f9.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/kernel-install.eclass X-VCS-Directories: eclass/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 5d6d7c6fbacf10a5fbb8d3ea1ab6ec2362ade6f9 X-VCS-Branch: master Date: Fri, 9 Aug 2024 15:50:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e21d6cf1-6355-460c-b11d-edcbe0dbc935 X-Archives-Hash: a9bf1b28e20f8a8f50aa7db61507aae2 commit: 5d6d7c6fbacf10a5fbb8d3ea1ab6ec2362ade6f9 Author: Andrew Ammerlaan gentoo org> AuthorDate: Fri Aug 9 15:46:39 2024 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Fri Aug 9 15:50:26 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d6d7c6f kernel-install.eclass: run depmod after compressing modules (de)compressing modules changes the path of the module files so we need to run depmod to ensure that tools such as modprobe/modinfo work. Note that depmod is often, but *not* always, run by sys-kernel/installkernel. Systemd installs a hook to do this, but there is no equivalent on openrc systems. So instead just ensure that the tree of modules we install is consistent here in the eclass. Signed-off-by: Andrew Ammerlaan gentoo.org> eclass/kernel-install.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass index 496e258815d2..930640188c26 100644 --- a/eclass/kernel-install.eclass +++ b/eclass/kernel-install.eclass @@ -796,6 +796,9 @@ kernel-install_compress_modules() { find "${ED}/lib/modules/${KV_FULL}" -name '*.ko' -print0 | xargs -0 -P "$(makeopts_jobs)" -n 128 "${compress[@]}" assert "Compressing kernel modules failed" + + # Module paths have changed, run depmod + depmod --all --basedir "${ED}" ${KV_FULL} || die fi }