[pve-devel] applied: [PATCH container 0/8] improve general CT distro detection and enhance suse

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Aug 2 10:45:59 CEST 2017


Applied whole series and added a followup patch to recognize 'sles' in
$os_release->{ID}:

-- 8< --
>From 21a1b046fadf15b192937c0a8141b3342659460a Mon Sep 17 00:00:00 2001
From: Wolfgang Bumiller <w.bumiller at proxmox.com>
Date: Wed, 2 Aug 2017 10:40:39 +0200
Subject: [PATCH container] setup: recognize 'sles' os_release ID

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 src/PVE/LXC/Setup.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Setup.pm b/src/PVE/LXC/Setup.pm
index 1d3063b..a503461 100644
--- a/src/PVE/LXC/Setup.pm
+++ b/src/PVE/LXC/Setup.pm
@@ -31,7 +31,7 @@ my $autodetect_type = sub {
     my ($self, $rootdir, $os_release) = @_;
 
     if (my $id = $os_release->{ID}) {
-	return $id if $id =~ /^(?:alpine|arch|centos|debian|fedora|gentoo|opensuse|ubuntu)$/;
+	return $id if $id =~ /^(?:alpine|arch|centos|debian|fedora|gentoo|opensuse|sles|ubuntu)$/;
     }
 
     # fallback compatibility checks
-- 
2.11.0





More information about the pve-devel mailing list