[pve-devel] SPAM: [PATCH v2 container 1/1] Fix numbering scheme detection for CentOS Stream releases.
Achim Dreyer
ml11045 at adreyer.com
Sat Oct 17 15:45:56 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..77eb6f7 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+)?/) || ($release =~ m/release\s+(\d+)/)) {
if ($1 >= 5 && $1 <= 9) {
$version = $1;
}
--
2.28.0
More information about the pve-devel
mailing list