]> git.openfabrics.org - ~aditr/ofed_scripts.git/commitdiff
install: install the existing kernel-ib RPM instead of rebuilding it every
authorVladimir Sokolovsky <vlad@mellanox.co.il>
Thu, 29 Oct 2009 09:50:41 +0000 (11:50 +0200)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Thu, 29 Oct 2009 09:50:41 +0000 (11:50 +0200)
time.

While nfsrdma module selected, the test whether nfsrdma is included in the
existing kernel-ib RPM fails as there is no such kernel module as nfsrdma.ko
Instead, there are other kernel modules created. So, "nfsrdma" is replaced
by one of its modules in this test.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
install.pl

index 27021e51d17d5e2c553970d8151cb0851edc9d7a..4f6208e813714d7c4c0310957690ce39a8f7dbcb 100755 (executable)
@@ -2449,6 +2449,10 @@ sub module_in_rpm
         return 1;
     }
 
+    if ($module eq "nfsrdma") {
+        $module = "xprtrdma";
+    }
+
     open(LIST, "rpm -qlp $package |") or die "Can't run 'rpm -qlp $package': $!\n";
     while (<LIST>) {
         if (/$module[a-z_]*.ko/) {