6 kernel-module-*) ;; # Fedora kernel module package names start with
8 kernel*) kernel_flavor=${1#kernel-} ;;
11 trap 'rm -f "$tmp"' EXIT
14 test -e "$f" || continue
19 */lib/modules/*/*.ko | */lib/modules/*/*.ko.gz | */boot/vmlinu[xz]*)
26 *.gz | */boot/vmlinuz*)
29 if $unzip && gzip -cd "$f" >"$tmp"; then
32 flavor=$(/usr/sbin/modinfo -F vermagic "$f")
35 if test -z "$flavor"; then
39 | sed -r -ne "s/^0*([0-9a-f]+) A __crc_(.+)/ksym($flavor:\\2) = \\1/p"