From 1f3200c4b9e4bfecd6fee6c26a89d4a77acee8e4 Mon Sep 17 00:00:00 2001 From: Jianping Liu Date: Thu, 19 Sep 2024 17:02:54 +0800 Subject: [PATCH] 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 Reviewed-by: Yongliang Gao --- dist/templates/kernel.template.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/templates/kernel.template.spec b/dist/templates/kernel.template.spec index 5f477f69b6cb..768726146500 100644 --- a/dist/templates/kernel.template.spec +++ b/dist/templates/kernel.template.spec @@ -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