public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Eric Chanudet <echanude@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kernel-srpm-macros] rawhide: kmodtool: search external modules in the kernel/kmod default path
Date: Tue, 24 Nov 2026 12:36:47 GMT [thread overview]
Message-ID: <179552380771.1.15962259955696401702.rpms-kernel-srpm-macros-ad39fb8b409f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/kernel-srpm-macros
Branch : rawhide
Commit : ad39fb8b409fcd3e23c158db45958023bb9f94fb
Author : Eric Chanudet <echanude@redhat.com>
Date : 2026-08-10T17:27:46-04:00
Stats : +1/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/kernel-srpm-macros/c/ad39fb8b409fcd3e23c158db45958023bb9f94fb?branch=rawhide
Log:
kmodtool: search external modules in the kernel/kmod default path
extra hasn't been used as a default for quite some time now. It was
changed back in 2022:
b74d7bb7ca24 ("kbuild: Modify default INSTALL_MOD_DIR from extra to updates")
and as the commit mentions, kmod is now default and has always used
"updates" for directory.
Keep checking in extra for now to avoid breaking existing specfiles. If
they use kernel_module_package_moddir for INSTALL_MOD_PATH, they will be
updated by the next commit.
Signed-off-by: Eric Chanudet <echanude@redhat.com>
---
diff --git a/kmodtool b/kmodtool
index 44ab4b4..4d443e2 100755
--- a/kmodtool
+++ b/kmodtool
@@ -211,7 +211,7 @@ if [ -e "/boot/System.map-${verrel}${dotvariant}" ]; then
/usr/sbin/depmod -aeF "/boot/System.map-${verrel}${dotvariant}" "${verrel}${dotvariant}" > /dev/null || :
fi
-modules=( \$(find /lib/modules/${verrel}${dotvariant}/extra/${kmod_name} | grep -E '\.ko(\.gz|\.bz2|\.xz|\.zst)?$') )
+modules=( \$(find /lib/modules/${verrel}${dotvariant}/{extra,updates}/${kmod_name} | grep -E '\.ko(\.gz|\.bz2|\.xz|\.zst)?$') )
if [ -x "/usr/sbin/weak-modules" ]; then
printf '%s\n' "\${modules[@]}" \
| /usr/sbin/weak-modules --add-modules
reply other threads:[~2026-11-24 12:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179552380771.1.15962259955696401702.rpms-kernel-srpm-macros-ad39fb8b409f@fedoraproject.org \
--to=echanude@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox