[ewg] [PATCH OFED-1.5] install.pl: modify kernels supported by NFSRDMA

Jon Mason jon at opengridcomputing.com
Thu Jun 18 15:48:24 PDT 2009


Currently, the only "vanilla" kernels that are supported are 2.6.22,
2.6.25, and 2.6.30.  This patch modifies the install.pl to only work for
those.

With the removal of RHEL5.1 support, the kernel check for RHEL should
not install for it.

Signed-Off-By: Jon Mason <jon at opengridcomputing.com>

diff --git a/install.pl b/install.pl
index 206aca5..bbbccf4 100755
--- a/install.pl
+++ b/install.pl
@@ -1721,7 +1721,7 @@ sub set_availability
     }
 
     # NFSRDMA
-    if ($kernel =~ m/2.6.22|2.6.2[6-9]|2.6.30/) {
+    if ($kernel =~ m/2.6.2[25]|2.6.30/) {
             $kernel_modules_info{'nfsrdma'}{'available'} = 1;
             $packages_info{'rnfs-utils'}{'available'} = 1;
             $packages_info{'rnfs-utils-debuginfo'}{'available'} = 1;
@@ -1734,7 +1734,7 @@ sub set_availability
     elsif ($kernel =~ m/el5/) {
             my $minor = (split '-', $kernel)[1];
             $minor =~ s/(\.el5).*//;
-            if ($minor >= 53) {
+            if ($minor > 53) {
                 $kernel_modules_info{'nfsrdma'}{'available'} = 1;
                 $packages_info{'rnfs-utils'}{'available'} = 1;
                 $packages_info{'rnfs-utils-debuginfo'}{'available'} = 1;



More information about the ewg mailing list