dist,spec: change the keyword for grep in BuildInstMLNXOFED

In BuildInstMLNXOFED, it grep kernel version 5.4, which is unsuited
with TK5 kernel version.

Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
Reviewed-by: Yongliang Gao <leonylgao@tencent.com>
This commit is contained in:
Jianping Liu 2024-09-19 17:02:54 +08:00
parent 45d1845157
commit 1f3200c4b9
1 changed files with 1 additions and 1 deletions

View File

@ -1245,7 +1245,7 @@ BuildInstMLNXOFED() {
rpm_rp=$(realpath MLNX_OFED_LINUX-*/RPMS)
pushd workdir
find $rpm_rp -name "*.rpm" -type f | while read -r pkg; do
if rpm -qlp $pkg | grep "\.ko$" | grep "5.4" >> ../ko.location; then
if rpm -qlp $pkg | grep "\.ko$" | grep "6.6" >> ../ko.location; then
rpm_bn=$(basename $pkg)
mkdir $rpm_bn && pushd $rpm_bn
rpm2cpio $rpm_rp/$rpm_bn | cpio -id