Whamcloud - gitweb
LU-17254 lnet: Fix ofed detection with specific kernel version 49/52949/2
authorAurelien Degremont <adegremont@nvidia.com>
Thu, 2 Nov 2023 10:55:30 +0000 (11:55 +0100)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Nov 2023 22:07:16 +0000 (22:07 +0000)
Improve OFED configure step with LNET when the kernel version
is using special characters that could be interprated in regexp
mode.

This is not uncommon in Debian world to have '+' in kernel version.

Test-parameters: trivial
Change-Id: Ia3da59c74d8c2e59e16525dd50c7b83c2b5fada8
Signed-off-by: Aurelien Degremont <adegremont@nvidia.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52949
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/autoconf/lustre-lnet.m4

index bda97a5..0100f19 100644 (file)
@@ -89,7 +89,7 @@ case $with_o2ib in
 
                        if test -n "$O2IBDIR_PATH"; then
                                O2IBPATHS=$(find $O2IBDIR_PATH -name rdma_cm.h |
-                                       egrep "`uname -r`|default" |
+                                       grep -F -e "`uname -r`" -e default |
                                        sed -e 's/\/include\/rdma\/rdma_cm.h//')
                        fi