]> git.proxmox.com Git - pve-container.git/commitdiff
allow opensuse >= 42
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 6 Apr 2017 04:26:22 +0000 (06:26 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 6 Apr 2017 04:26:22 +0000 (06:26 +0200)
src/PVE/LXC/Setup/SUSE.pm

index b7753780b0d2d8facb997239a45639ab55a59d07..224dcd021bf07871db02a30d2ae8b8e147221ccf 100644 (file)
@@ -20,8 +20,13 @@ sub new {
     # Fixme: not sure whether the minor part is optional.
     if ($release =~ m/^\s*VERSION\s*=\s*(\d+)(?:\.(\d+))?\s*$/m) {
        $version = "$1.$2";
-       # 13.2 needs an updated AppArmor profile (in lxc *after* 2.0.0.beta2)
-       if ($1 != 13 || ($2//0) > 2) {
+       if ($1 >= 42) {
+           # OK
+       } elsif ($1 == 13 || ($2//0) > 2) {
+           # Note: 13.2 needs an updated AppArmor profile (in lxc
+           # *after* 2.0.0.beta2)
+           # OK
+       } else {
            die "unsupported suse release '$version'\n";
        }
     } else {