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/kmod] rawhide: weak-modules: handle zstd compressed modules
Date: Wed, 28 Oct 2026 19:35:41 GMT [thread overview]
Message-ID: <179321614173.1.689607199006633753.rpms-kmod-7e5d3040224d@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/kmod
Branch : rawhide
Commit : 7e5d3040224d79d7d5505b99522fdfd25b3cb4db
Author : Eric Chanudet <echanude@redhat.com>
Date : 2026-08-12T18:03:54-04:00
Stats : +4/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/kmod/c/7e5d3040224d79d7d5505b99522fdfd25b3cb4db?branch=rawhide
Log:
weak-modules: handle zstd compressed modules
Add .zst as possible extension for module compression.
find_modules, find_modules_dir and list_module_files all search for
modules based on extensions.
module_has_changed also works using ko.<comp> extensions, add zst.
Signed-off-by: Eric Chanudet <echanude@redhat.com>
---
diff --git a/weak-modules b/weak-modules
index df9b02a..6dd9340 100644
--- a/weak-modules
+++ b/weak-modules
@@ -162,7 +162,7 @@ decompress_initramfs() {
# initramfs. The current directory must be the root of the uncompressed
# initramfs. The unsorted list of files is output to stdout.
list_module_files() {
- find . -iname \*.ko -o -iname '*.ko.xz' -o -iname '*.ko.gz' 2>/dev/null
+ find . -iname \*.ko -o -iname '*.ko.xz' -o -iname '*.ko.gz' -o -iname '*.ko.zst' 2>/dev/null
find etc/modprobe.d usr/lib/modprobe.d -name \*.conf 2>/dev/null
}
@@ -285,6 +285,7 @@ module_has_changed() {
module=${module%.ko}
[[ $module == $orig_module ]] && module=${module%.ko.xz}
[[ $module == $orig_module ]] && module=${module%.ko.gz}
+ [[ $module == $orig_module ]] && module=${module%.ko.zst}
module=${module##*/}
eval "changed_modules_${krel//[^a-zA-Z0-9]/_}=$krel"
@@ -392,7 +393,7 @@ find_modules() {
for dir in $dirs; do
find $BASEDIR/lib/modules/$krel/$dir \
- -name '*.ko' -o -name '*.ko.xz' -o -name '*.ko.gz' \
+ -name '*.ko' -o -name '*.ko.xz' -o -name '*.ko.gz' -o -name '*.ko.zst' \
2>/dev/null
done
}
@@ -404,7 +405,7 @@ find_modules_dirs() {
local dirs="$*"
for dir in $dirs; do
- find $dir -name '*.ko' -o -name '*.ko.xz' -o -name '*.ko.gz' \
+ find $dir -name '*.ko' -o -name '*.ko.xz' -o -name '*.ko.gz' -o -name '*.ko.zst' \
2>/dev/null
done
}
reply other threads:[~2026-10-28 19:35 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=179321614173.1.689607199006633753.rpms-kmod-7e5d3040224d@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