]> git.openfabrics.org - ~tnikolova/ofed_scripts/.git/commitdiff
install.pl: modify kernels supported by NFSRDMA
authorJon Mason <jon@opengridcomputing.com>
Thu, 18 Jun 2009 22:48:24 +0000 (17:48 -0500)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Sun, 21 Jun 2009 07:37:01 +0000 (10:37 +0300)
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@opengridcomputing.com>
install.pl

index a86c8e4c75c6a58e70d912e1c3df6aec0ed27535..3a7876182583b67d66aea1c731e74de2a23a1c10 100755 (executable)
@@ -1722,7 +1722,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;
@@ -1735,7 +1735,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;