install.pl: Updated list of supported OSes and kernels
authorVladimir Sokolovsky <vlad@mellanox.com>
Wed, 2 May 2018 15:26:20 +0000 (10:26 -0500)
committerVladimir Sokolovsky <vlad@mellanox.com>
Wed, 2 May 2018 15:26:20 +0000 (10:26 -0500)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
install.pl

index 762f197..955cae3 100755 (executable)
@@ -230,149 +230,21 @@ chomp $dist_rpm;
 
 my $rpm_distro = '';
 
-if ($dist_rpm =~ /openSUSE-release-11.2/) {
-    $DISTRO = "openSUSE11.2";
-    $rpm_distro = "opensuse11sp2";
-} elsif ($dist_rpm =~ /openSUSE/) {
-    $DISTRO = "openSUSE";
-    $rpm_distro = "opensuse11sp0";
-} elsif ($dist_rpm =~ /sles-release-12\.3|SLES.*release-12\.3/) {
+if ($dist_rpm =~ /sles-release-12\.3|SLES.*release-12\.3/) {
     $DISTRO = "SLES12";
     $rpm_distro = "sles12sp3";
 } elsif ($dist_rpm =~ /sles-release-12\.2|SLES.*release-12\.2/) {
     $DISTRO = "SLES12";
     $rpm_distro = "sles12sp2";
-} elsif ($dist_rpm =~ /sles-release-12\.1|SLES.*release-12\.1/) {
-    $DISTRO = "SLES12";
-    $rpm_distro = "sles12sp1";
 } elsif ($dist_rpm =~ /sles-release-12|SLES.*release-12/) {
     $DISTRO = "SLES12";
     $rpm_distro = "sles12sp0";
-} elsif ($dist_rpm =~ /sles-release-11.4|SLES.*release-11.4/) {
-    $DISTRO = "SLES11";
-    $rpm_distro = "sles11sp4";
-} elsif ($dist_rpm =~ /sles-release-11.3|SLES.*release-11.3/) {
-    $DISTRO = "SLES11";
-    $rpm_distro = "sles11sp3";
-} elsif ($dist_rpm =~ /sles-release-11.2|SLES.*release-11.2/) {
-    $DISTRO = "SLES11";
-    $rpm_distro = "sles11sp2";
-} elsif ($dist_rpm =~ /sles-release-11.1|SLES.*release-11.1/) {
-    $DISTRO = "SLES11";
-    $rpm_distro = "sles11sp1";
-} elsif ($dist_rpm =~ /sles-release-11/) {
-    $DISTRO = "SLES11";
-    $rpm_distro = "sles11sp0";
-} elsif ($dist_rpm =~ /sles-release-10-15.45.8/) {
-    $DISTRO = "SLES10";
-    $rpm_distro = "sles10sp3";
-} elsif ($dist_rpm =~ /sles-release-10-15.57.1/) {
-    $DISTRO = "SLES10";
-    $rpm_distro = "sles10sp4";
-} elsif ($dist_rpm =~ /redhat-release-.*-6.1|sl-release-6.1|centos-release-6-1/) {
-    $DISTRO = "RHEL6.1";
-    $rpm_distro = "rhel6u1";
-} elsif ($dist_rpm =~ /redhat-release-.*-6.2|sl-release-6.2|centos-release-6-2/) {
-    $DISTRO = "RHEL6.2";
-    $rpm_distro = "rhel6u2";
-} elsif ($dist_rpm =~ /redhat-release-.*-6.3|sl-release-6.3|centos-release-6-3/) {
-    $DISTRO = "RHEL6.3";
-    $rpm_distro = "rhel6u3";
-} elsif ($dist_rpm =~ /redhat-release-.*-6.4|sl-release-6.4|centos-release-6-4/) {
-    $DISTRO = "RHEL6.4";
-    $rpm_distro = "rhel6u4";
-} elsif ($dist_rpm =~ /redhat-release-.*-6.5|sl-release-6.5|centos-release-6-5/) {
-    $DISTRO = "RHEL6.5";
-    $rpm_distro = "rhel6u5";
-} elsif ($dist_rpm =~ /redhat-release-.*-6.6|sl-release-6.6|centos-release-6-6/) {
-    $DISTRO = "RHEL6.6";
-    $rpm_distro = "rhel6u6";
-} elsif ($dist_rpm =~ /redhat-release-.*-6.7|sl-release-6.7|centos-release-6-7/) {
-    $DISTRO = "RHEL6.7";
-    $rpm_distro = "rhel6u7";
-} elsif ($dist_rpm =~ /redhat-release-.*-7.0|sl-release-7.0|centos-release-7-0/) {
-    $DISTRO = "RHEL7.0";
-    $rpm_distro = "rhel7u0";
-} elsif ($dist_rpm =~ /redhat-release-.*-7.1|sl-release-7.1|centos-release-7-1/) {
-    $DISTRO = "RHEL7.1";
-    $rpm_distro = "rhel7u1";
-} elsif ($dist_rpm =~ /redhat-release-.*-7.2|sl-release-7.2|centos-release-7-2/) {
-    $DISTRO = "RHEL7.2";
-    $rpm_distro = "rhel7u2";
-} elsif ($dist_rpm =~ /redhat-release-.*-7.3|sl-release-7.3|centos-release-7-3/) {
-    $DISTRO = "RHEL7.3";
-    $rpm_distro = "rhel7u3";
 } elsif ($dist_rpm =~ /redhat-release-.*-7.4|sl-release-7.4|centos-release-7-4/) {
     $DISTRO = "RHEL7.4";
     $rpm_distro = "rhel7u4";
-} elsif ($dist_rpm =~ /oraclelinux-release-6.*-1.0.2/) {
-    $DISTRO = "OEL6.1";
-    $rpm_distro = "oel6u1";
-} elsif ($dist_rpm =~ /oraclelinux-release-6.*-2.0.2/) {
-    $DISTRO = "OEL6.2";
-    $rpm_distro = "oel6u2";
-} elsif ($dist_rpm =~ /redhat-release-.*-6.0|centos-release-6-0/) {
-    $DISTRO = "RHEL6.0";
-    $rpm_distro = "rhel6u0";
-} elsif ($dist_rpm =~ /redhat-release-.*-5.8|centos-release-5-8|enterprise-release-5-8/) {
-    $DISTRO = "RHEL5.8";
-    $rpm_distro = "rhel5u8";
-} elsif ($dist_rpm =~ /redhat-release-.*-5.7|centos-release-5-7|enterprise-release-5-7/) {
-    $DISTRO = "RHEL5.7";
-    $rpm_distro = "rhel5u7";
-} elsif ($dist_rpm =~ /redhat-release-.*-5.6|centos-release-5-6|enterprise-release-5-6/) {
-    $DISTRO = "RHEL5.6";
-    $rpm_distro = "rhel5u6";
-} elsif ($dist_rpm =~ /redhat-release-.*-5.5|centos-release-5-5|enterprise-release-5-5/) {
-    system("grep -wq XenServer /etc/issue > /dev/null 2>&1");
-    my $res = $? >> 8;
-    my $sig = $? & 127;
-    if ($sig or $res) {
-        $DISTRO = "RHEL5.5";
-        $rpm_distro = "rhel5u5";
-    } else {
-        $DISTRO = "XenServer5.6";
-        $rpm_distro = "xenserver5u6";
-    }
-} elsif ($dist_rpm =~ /redhat-release-.*-5.4|centos-release-5-4/) {
-    $DISTRO = "RHEL5.4";
-    $rpm_distro = "rhel5u4";
-} elsif ($dist_rpm =~ /redhat-release-.*-5.3|centos-release-5-3/) {
-    $DISTRO = "RHEL5.3";
-    $rpm_distro = "rhel5u3";
-} elsif ($dist_rpm =~ /redhat-release-.*-5.2|centos-release-5-2/) {
-    $DISTRO = "RHEL5.2";
-    $rpm_distro = "rhel5u2";
-} elsif ($dist_rpm =~ /redhat-release-4AS-9/) {
-    $DISTRO = "RHEL4.8";
-    $rpm_distro = "rhel4u8";
-} elsif ($dist_rpm =~ /redhat-release-4AS-8/) {
-    $DISTRO = "RHEL4.7";
-    $rpm_distro = "rhel4u7";
-} elsif ($dist_rpm =~ /fedora-release-12/) {
-    $DISTRO = "FC12";
-    $rpm_distro = "fc12";
-} elsif ($dist_rpm =~ /fedora-release-13/) {
-    $DISTRO = "FC13";
-    $rpm_distro = "fc13";
-} elsif ($dist_rpm =~ /fedora-release-14/) {
-    $DISTRO = "FC14";
-    $rpm_distro = "fc14";
-} elsif ($dist_rpm =~ /fedora-release-15/) {
-    $DISTRO = "FC15";
-    $rpm_distro = "fc15";
-} elsif ($dist_rpm =~ /fedora-release-16/) {
-    $DISTRO = "FC16";
-    $rpm_distro = "fc16";
-} elsif ($dist_rpm =~ /fedora-release-17/) {
-    $DISTRO = "FC17";
-    $rpm_distro = "fc17";
-} elsif ($dist_rpm =~ /fedora-release-18/) {
-    $DISTRO = "FC18";
-    $rpm_distro = "fc18";
-} elsif ($dist_rpm =~ /fedora-release-19/) {
-    $DISTRO = "FC19";
-    $rpm_distro = "fc19";
+} elsif ($dist_rpm =~ /redhat-release-.*-7.5|sl-release-7.5|centos-release-7-5/) {
+    $DISTRO = "RHEL7.5";
+    $rpm_distro = "rhel7u5";
 } elsif ($dist_rpm =~ /Ubuntu/) {
     $DISTRO = "UBUNTU$dist_rpm_ver";
     $rpm_distro =~ tr/[A-Z]/[a-z]/;
@@ -1444,7 +1316,7 @@ sub set_availability
         $packages_info{'rdma-ndd'}{'available'} = 0;
        }
 
-    if ($kernel =~ m/^4\.8/) {
+    if ($kernel =~ m/^4\.17/) {
             $kernel_modules_info{'rds'}{'available'} = 1;
             $packages_info{'rds-tools'}{'available'} = 1;
             $packages_info{'rds-devel'}{'available'} = 1;