]> git.proxmox.com Git - pve-container.git/commitdiff
setup: allow CentOS 5 and CentOS 8
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Aug 2019 16:49:01 +0000 (18:49 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Aug 2019 16:52:36 +0000 (18:52 +0200)
One is in the extended support phase, it should not be used but
people report that the CentOS 6 code path works just fine, so why
not...

The other is for the upcoming CentOS 8, while not fully testable for
compatibility yet, CentOS 7 code path should do the trick, else
we'll need to adapt it anyway, so see this as experimental

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 9b940fef409e443713cf8ae3ca4f42f75f756f9e)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Setup/CentOS.pm

index a18aeadbf2efb682df442865477a51ed31aa90e5..cc4c5bbc1c84d945bd59ebddd89ff5f73fb6ef92 100644 (file)
@@ -20,7 +20,7 @@ sub new {
     my $version;
 
     if ($release =~ m/release\s+(\d+\.\d+)(\.\d+)?/) {
-       if ($1 >= 6 && $1 < 8) {
+       if ($1 >= 5 && $1 <= 8) {
            $version = $1;
        }
     }