]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(kernel-modules-extra): handle zstd module extension
authorDirk Müller <dirk@dmllr.de>
Thu, 23 Dec 2021 09:23:59 +0000 (10:23 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 2 Feb 2022 22:50:41 +0000 (22:50 +0000)
The regular expression here is trying to handle various kernel
module compression schemas and was missing the zst extension
which indicates use of zstd.

modules.d/90kernel-modules-extra/module-setup.sh

index 19a5faa876b8c6c792ad7b311e707b33607a34bc..6d0d052101eb3f6a58f0526e2a37aab2154e1e0a 100755 (executable)
@@ -173,7 +173,7 @@ installkernel() {
 
     ((${#pathlist[@]} > 0)) || return 0
 
-    printf "^%s\.ko(\.gz|\.bz2|\.xz)?:\n" "${pathlist[@]}" \
+    printf "^%s\.ko(\.gz|\.bz2|\.xz|\.zst)?:\n" "${pathlist[@]}" \
         | (LANG=C grep -E -o -f - -- "$depmod_modules_dep" || exit 0) \
         | tr -d ':' \
         | (