You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
699 B
17 lines
699 B
3 years ago
|
#!/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
|
||
|
# We generate dependencies only for symbols exported by vmlinux itself
|
||
|
# and not for kmods here as they are spread across subpackages,
|
||
|
# so Provides: generation for kmods is handled by find-provides.ksyms.
|
||
|
zcat $symvers | awk '/[^ ]* [^ ]* vmlinux .*/ { print "kernel(" $2 ") = " $1 }'
|
||
|
done
|