patch from jcm to adjust kmod handling
This commit is contained in:
parent
e053cecd41
commit
48c39c99dc
@ -5,11 +5,6 @@
|
|||||||
# sonames, script interpreters, and perl modules.
|
# sonames, script interpreters, and perl modules.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ "$1" ]
|
|
||||||
then
|
|
||||||
package_name = "$1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
ulimit -c 0
|
ulimit -c 0
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -144,21 +139,18 @@ done | sort -u
|
|||||||
# cheat a little here by looking first for a kernel, then for a kmod.
|
# cheat a little here by looking first for a kernel, then for a kmod.
|
||||||
#
|
#
|
||||||
|
|
||||||
is_kmod=1
|
unset is_kmod
|
||||||
|
|
||||||
for f in $filelist; do
|
for f in $filelist; do
|
||||||
if [ $(echo "$f" | sed -r -ne 's:^.*/lib/modules/(.*)/(.*).ko$:\2:p') ]
|
if [ $(echo "$f" | sed -r -ne 's:^.*/lib/modules/(.*)/(.*).ko$:\2:p') ]
|
||||||
then
|
then
|
||||||
is_kernel=1;
|
is_kmod=1;
|
||||||
fi
|
elif [ $(echo "$f" | sed -r -ne 's:^.*/boot/(.*):\1:p') ]
|
||||||
if [ $(echo "$f" | sed -r -ne 's:^.*/boot/(.*):\1:p') ]
|
|
||||||
then
|
then
|
||||||
unset is_kmod;
|
unset is_kmod;
|
||||||
|
break;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ ! "$is_kernel" ] || [ "$package_name" == "kernel" ]
|
|
||||||
then
|
|
||||||
unset is_kmod
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ -x /usr/lib/rpm/redhat/find-requires.ksyms ] && [ "$is_kmod" ] &&
|
[ -x /usr/lib/rpm/redhat/find-requires.ksyms ] && [ "$is_kmod" ] &&
|
||||||
printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/redhat/find-requires.ksyms
|
printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/redhat/find-requires.ksyms
|
||||||
|
@ -19,6 +19,11 @@ for symsets in /boot/symsets-*.tar.gz; do
|
|||||||
| tar xf -
|
| tar xf -
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for symsets in /usr/src/kernels/*/symsets-*.tar.gz; do
|
||||||
|
zcat $symsets \
|
||||||
|
| tar xf -
|
||||||
|
done
|
||||||
|
|
||||||
for symsets in *; do
|
for symsets in *; do
|
||||||
krel=${symsets#symsets-}
|
krel=${symsets#symsets-}
|
||||||
for symset in $symsets/*; do
|
for symset in $symsets/*; do
|
||||||
|
Loading…
Reference in New Issue
Block a user