public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kernel-srpm-macros] rawhide: kmodtool: search external modules in the kernel/kmod default path
@ 2026-11-24 12:36 Eric Chanudet
  0 siblings, 0 replies; only message in thread
From: Eric Chanudet @ 2026-11-24 12:36 UTC (permalink / raw)
  To: git-commits

            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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 12:36 [rpms/kernel-srpm-macros] rawhide: kmodtool: search external modules in the kernel/kmod default path Eric Chanudet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox