[pve-devel] add support fedora 22 for lxc

lyt_yudi lyt_yudi at icloud.com
Sun Nov 22 15:46:45 CET 2015


hi,

Please support fedora 22 for lxc, just to modify two line code. 

we tested it a long time and no problem here.

diff --git a/src/PVE/LXC/Setup/Redhat.pm b/src/PVE/LXC/Setup/Redhat.pm
index 956e1da..2dcc4ad 100644
--- a/src/PVE/LXC/Setup/Redhat.pm
+++ b/src/PVE/LXC/Setup/Redhat.pm
@@ -19,8 +19,8 @@ sub new {
 
     my $version;
 
-    if ($release =~ m/release\s+(\d+\.\d+)(\.\d+)?/) {
-    if ($1 >= 6 && $1 < 8) {
+    if ($release =~ m/release\s+(\d+\.?\d+)(\.\d+)?/) {
+    if ($1 >= 6 && $1 < 25) {
         $version = $1;
     }
     }


thanks. 



More information about the pve-devel mailing list