public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kmod] rawhide: weak-modules: handle zstd compressed modules
@ 2026-10-28 19:35 Eric Chanudet
0 siblings, 0 replies; only message in thread
From: Eric Chanudet @ 2026-10-28 19:35 UTC (permalink / raw)
To: git-commits
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
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-28 19:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 19:35 [rpms/kmod] rawhide: weak-modules: handle zstd compressed modules Eric Chanudet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox