From 8c463e8d62f1079c575640edddc923a23039eb72 Mon Sep 17 00:00:00 2001 From: Yang Yanchao Date: Wed, 24 Nov 2021 18:06:43 +0800 Subject: [PATCH] Precisely filters ko files in "/lib/modules/$kernel/extra" to avoid creating unnecessary symbols. Signed-off-by: Yang Yanchao (cherry picked from commit 868a48e58259e7b3377205d466c5c08930984d7c) --- kmod.spec | 6 +++++- weak-modules | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/kmod.spec b/kmod.spec index 3b2aaba..978587f 100644 --- a/kmod.spec +++ b/kmod.spec @@ -1,6 +1,6 @@ Name: kmod Version: 27 -Release: 6 +Release: 7 Summary: Kernel module management # GPLv2+ is used by programs, LGPLv2+ is used for libraries. License: GPLv2+ and LGPLv2+ @@ -116,6 +116,10 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf %doc TODO NEWS README %changelog +* Wed Nov 24 2021 Yang Yanchao - 27-7 +- Precisely filters ko files in "/lib/modules/$kernel/extra" + to avoid creating unnecessary symbols. + * Tue Nov 9 2021 Yang Yanchao - 27-6 - Sync the weak-modules script from the 20.03-LTS-SP1 - use -V to sort kernel version in weak-modules diff --git a/weak-modules b/weak-modules index b4bffa7..dc7ce2b 100644 --- a/weak-modules +++ b/weak-modules @@ -985,7 +985,7 @@ filter_extra_absoluted() while read i; do # skip non-extra. The check is not perfect, but ok # to speed up handling in general cases - echo "$i" |grep -q "extra/" || continue + echo "$i" |grep -q "^extra/" || continue read -a mods <<< "$i" for j in "${!mods[@]}"; do -- Gitee