[pve-devel] applied: [PATCH stable-5 container] setup: allow centos up to version 9

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Mar 2 19:14:53 CET 2020


From: Oguz Bektas <o.bektas at 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.bektas at proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller at 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.lamprecht at 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





More information about the pve-devel mailing list