[pve-devel] SPAM: [PATCH container 1/1] Fix numbering scheme detection for CentOS Stream releases.

Achim Dreyer ml11045 at adreyer.com
Tue Oct 13 19:08:58 CEST 2020


Signed-off-by: Achim Dreyer <ml11045 at adreyer.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 0825273..aab0488 100644
--- a/src/PVE/LXC/Setup/CentOS.pm
+++ b/src/PVE/LXC/Setup/CentOS.pm
@@ -19,7 +19,7 @@ sub new {
 
     my $version;
 
-    if ($release =~ m/release\s+(\d+\.\d+)(\.\d+)?/) {
+    if ($release =~ m/release\s+(\d+)(\.\d+)?(\.\d+)?/) {
 	if ($1 >= 5 && $1 <= 9) {
 	    $version = $1;
 	}
-- 
2.28.0





More information about the pve-devel mailing list