[pve-devel] [PATCH dab] close #1668: add support for devuan jessie and ascii

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Feb 15 13:16:34 CET 2018


Use devuan-jessie as suite name to avoid conflict.
Allow both versions for Devuan ascii.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 DAB.pm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/DAB.pm b/DAB.pm
index b00368a..dafae9f 100644
--- a/DAB.pm
+++ b/DAB.pm
@@ -237,7 +237,7 @@ sub __sample_config {
 
     my $ostype = $self->{config}->{ostype};
 
-    if ($ostype =~ m/^debian-/) {
+    if ($ostype =~ m/^de(bi|vu)an-/) {
 	$data .= "lxc.include = /usr/share/lxc/config/debian.common.conf\n";
     } elsif ($ostype =~ m/^ubuntu-/) {
 	$data .= "lxc.include = /usr/share/lxc/config/ubuntu.common.conf\n";
@@ -331,6 +331,12 @@ sub new {
 	$config->{ostype} = "debian-5.0";
     } elsif ($suite eq 'etch') { 
 	$config->{ostype} = "debian-4.0";
+    } elsif ($suite eq 'devuan-jessie') {
+	$suite = 'jessie';
+	$config->{ostype} = "devuan-1.0";
+    } elsif ($suite eq 'devuan-ascii' || 'ascii') {
+	$suite = 'ascii';
+	$config->{ostype} = "devuan-2.0";
     } elsif ($suite eq 'hardy') { 
 	$config->{ostype} = "ubuntu-8.04";
     } elsif ($suite eq 'intrepid') { 
-- 
2.14.2





More information about the pve-devel mailing list