import CS kmod-25-20.el8

This commit is contained in:
eabdullin 2024-03-27 19:54:53 +00:00
parent 50b0f3dec1
commit 5e91d4065f
2 changed files with 21 additions and 12 deletions

View File

@ -520,26 +520,31 @@ finish_sandbox() {
# Auxiliary functions to find symvers file # Auxiliary functions to find symvers file
make_kernel_file_names() { make_kernel_file_names() {
local krel="$1" local krel="$1"
local file="$2" shift
local suffix="$3" local file="$1"
shift
echo "${BASEDIR}/boot/${file}-${krel}${suffix}" for suffix in "$@"; do
echo "${BASEDIR}/lib/modules/${krel}/${file}${suffix}" echo "${BASEDIR}/boot/${file}-${krel}${suffix}"
echo "${BASEDIR}/lib/modules/${krel}/${file}${suffix}"
done
} }
find_kernel_file() { find_kernel_file() {
local krel="$1" local krel="$1"
local file="$2" shift
local suffix="$3" local file="$1"
local print="$4" shift
local print="$1"
shift
local i local i
if [[ "$print" != "" ]]; then if [[ "$print" != "" ]]; then
make_kernel_file_names "$krel" "$file" "$suffix" make_kernel_file_names "$krel" "$file" "$@"
return 0 return 0
fi fi
for i in $(make_kernel_file_names "$krel" "$file" "$suffix"); do for i in $(make_kernel_file_names "$krel" "$file" "$@"); do
if [[ -r "$i" ]]; then if [[ -r "$i" ]]; then
echo "$i" echo "$i"
return 0 return 0
@ -563,7 +568,7 @@ find_symvers_file() {
local krel="$1" local krel="$1"
local print="$2" local print="$2"
find_kernel_file "$krel" symvers .gz "$print" find_kernel_file "$krel" symvers "$print" .xz .gz
} }
# find_systemmap_file: # find_systemmap_file:
@ -573,7 +578,7 @@ find_systemmap_file() {
local print="$2" local print="$2"
local no_suffix="" local no_suffix=""
find_kernel_file "$krel" System.map "$no_suffix" "$print" find_kernel_file "$krel" System.map "$print" "$no_suffix"
} }
#### Main logic #### Main logic

View File

@ -1,6 +1,6 @@
Name: kmod Name: kmod
Version: 25 Version: 25
Release: 19%{?dist} Release: 20%{?dist}
Summary: Linux kernel module management utilities Summary: Linux kernel module management utilities
Group: System Environment/Kernel Group: System Environment/Kernel
@ -129,6 +129,10 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
%{_libdir}/libkmod.so %{_libdir}/libkmod.so
%changelog %changelog
* Wed Oct 11 2023 Eugene Syromiatnikov <esyr@redhat.com> - 25-20
- Add symvers.xz support to weak-modules
- Resolves: RHEL-8903
* Mon Nov 29 2021 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-19 * Mon Nov 29 2021 Yauheni Kaliuta <ykaliuta@redhat.com> - 25-19
- depmod: fix parallel execution issues - depmod: fix parallel execution issues
Resolves: rhbz#2026938 Resolves: rhbz#2026938