From b5583827a5dac915c61fcc539c15b20a380b0b29 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 15 Feb 2018 13:16:34 +0100 Subject: [PATCH] close #1668: add support for devuan jessie and ascii Use devuan-jessie as suite name to avoid conflict. Allow both versions for Devuan ascii. Signed-off-by: Thomas Lamprecht --- 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.39.2