cc8b47062a
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>
14 lines
468 B
Bash
14 lines
468 B
Bash
#!/bin/bash +x
|
|
#
|
|
# kabi.sh - Automatically extract any kernel symbol checksum from the
|
|
# symvers file and add to RPM deps. This is used to move the
|
|
# checksum checking from modprobe to rpm install for 3rd party
|
|
# modules (so they can fail during install and not at load).
|
|
|
|
IFS=$'\n'
|
|
|
|
for symvers in $(grep -E '(/boot/symvers-.*|/lib/modules/[1-9].*/symvers)\.gz') "$@";
|
|
do
|
|
zcat $symvers | awk ' {print "kernel(" $2 ") = " $1 }'
|
|
done
|