install.pl: Fix check for existing NVME kernel modiles
authorVladimir Sokolovsky <vlad@mellanox.com>
Wed, 2 May 2018 18:21:35 +0000 (13:21 -0500)
committerVladimir Sokolovsky <vlad@mellanox.com>
Wed, 2 May 2018 18:21:35 +0000 (13:21 -0500)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
install.pl

index 426122f..9573ce3 100755 (executable)
@@ -1763,6 +1763,14 @@ sub module_in_rpm
         $module = "rpcrdma";
     }
 
+    if ($module eq "nvme-host") {
+        $module = "nvme-rdma";
+    }
+
+    if ($module eq "nvme-target") {
+        $module = "nvmet-rdma";
+    }
+
     open(LIST, "rpm -qlp $package |") or die "Can't run 'rpm -qlp $package': $!\n";
     while (<LIST>) {
         if (/$module[a-z_]*.ko/) {