]> git.proxmox.com Git - dab.git/commitdiff
close #1668: add support for devuan jessie and ascii
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 15 Feb 2018 12:16:34 +0000 (13:16 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 16 Feb 2018 04:57:01 +0000 (05:57 +0100)
Use devuan-jessie as suite name to avoid conflict.
Allow both versions for Devuan ascii.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
DAB.pm

diff --git a/DAB.pm b/DAB.pm
index b00368a8b507d2789e18139b42dbc62394d43a3a..dafae9fd11823d50cd90ab1a8832dccf1108ad6e 100644 (file)
--- 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') {