From: Oguz Bektas <o.bek...@proxmox.com>

[0]: 
https://forum.proxmox.com/threads/centos-8-1-lxc-unsupported-centos-release.63530/

so that we handle all the point releases between 8-9

Signed-off-by: Oguz Bektas <o.bek...@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumil...@proxmox.com>
(cherry picked from commit c823eb0a1b2b04bc7745bbac4819be9a9c96df51)
(cherry picked from commit 6566b196964dd8723eebf7c43181854b669f6e87)
[ Thomas: Squashed above two cherry-picks into one commit ]
Signed-off-by: Thomas Lamprecht <t.lampre...@proxmox.com>
---
 src/PVE/LXC/Setup/CentOS.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/LXC/Setup/CentOS.pm
index cc4c5bb..d73c0cf 100644
--- a/src/PVE/LXC/Setup/CentOS.pm
+++ b/src/PVE/LXC/Setup/CentOS.pm
@@ -20,7 +20,7 @@ sub new {
     my $version;
 
     if ($release =~ m/release\s+(\d+\.\d+)(\.\d+)?/) {
-       if ($1 >= 5 && $1 <= 8) {
+       if ($1 >= 5 && $1 <= 9) {
            $version = $1;
        }
     }
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to