]> git.openfabrics.org - ~vlad/ofed_scripts.git/commitdiff
Allow iser to be compiled under RHEL5.4
authorMoni Shoua <monis@Voltaire.COM>
Sun, 21 Feb 2010 15:38:30 +0000 (17:38 +0200)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Mon, 22 Feb 2010 08:06:39 +0000 (10:06 +0200)
Add kernel of RHEL5.4 to the list of supported kernels (nackport patches
were already submitted by Or Gerlitz) and break the dependency between iSER and
iSCSI. However, the script code that builds iSCSI modules and upgrades
open-iscsi userspace RPM is still there in case we need it in the future.
Patches are to the install script and build scripts and were split into three parts.

Signed-off-by: Moni Shoua <monis@voltaire.com>
install.pl

index 1bae22bf14215e40b559ad8e4fb75e98a92c0018..346db13996aef7c8c5eb300ae7da11a9d621a49d 100755 (executable)
@@ -1680,7 +1680,7 @@ sub set_availability
 
     # Iser
     # if ($kernel =~ m/2.6.9-67|2.6.9-78|2.6.16.[0-9.]*-[0-9.]*-[A-Za-z0-9.]*|el5/) {
-    if ($kernel =~ m/2.6.3[0-2]/) {
+    if ($kernel =~ m/2.6.3[0-2]|2.6.18-164/) {
             $kernel_modules_info{'iser'}{'available'} = 1;
             $packages_info{'open-iscsi-generic'}{'available'} = 1;
     }
@@ -2777,17 +2777,6 @@ sub check_open_iscsi
                 if ( $ans eq 'Y' or $ans eq 'y' ) {
                     $upgrade_open_iscsi = 1;
                 }
-                else {
-                    print RED "Please uninstall $oiscsi_name before installing $PACKAGE with iSER support.", RESET "\n";
-                    exit 1;
-                }
-            }
-            else {
-                if (not $upgrade_open_iscsi) {
-                    print RED "Please uninstall $oiscsi_name before installing $PACKAGE with iSER support.", RESET "\n";
-                    print RED "  Or put \"upgrade_open_iscsi=yes\" in the $config:", RESET "\n";
-                    exit 1;
-                }
             }
         }
     }