Re-instantiate support for old symvers path
As it breaks bz1004930-detect-kabi-provides test[1] otherwise. [1] http://pkgs.devel.redhat.com/cgit/tests/redhat-rpm-config/tree/Sanity/bz1004930-detect-kabi-provides - Re-instantiate support for old symvers path * kabi.attr (%__kabi_path): Add "/boot/symvers-.*" to the path matching regular expression. * kabi.sh: Likewise. Resolves: #1942563 Resolves: #2008554 Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
This commit is contained in:
parent
38767e4902
commit
cc5344c96d
@ -1,2 +1,2 @@
|
|||||||
%__kabi_provides %{_rpmconfigdir}/kabi.sh
|
%__kabi_provides %{_rpmconfigdir}/kabi.sh
|
||||||
%__kabi_path ^/lib/modules/[1-9].*/symvers.gz$
|
%__kabi_path ^(/boot/symvers-.*|/lib/modules/[1-9].*/symvers)\.gz$
|
||||||
|
2
kabi.sh
2
kabi.sh
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
|
||||||
for symvers in $(grep -E '/lib/modules/[1-9].*/symvers\.gz') "$@";
|
for symvers in $(grep -E '(/boot/symvers-.*|/lib/modules/[1-9].*/symvers)\.gz') "$@";
|
||||||
do
|
do
|
||||||
zcat $symvers | awk ' {print "kernel(" $2 ") = " $1 }'
|
zcat $symvers | awk ' {print "kernel(" $2 ") = " $1 }'
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user