]> git.proxmox.com Git - dab.git/commitdiff
add support for Ubuntu 17.10 (artful)
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Dec 2017 12:32:32 +0000 (13:32 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 12 Dec 2017 11:00:25 +0000 (12:00 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
DAB.pm

diff --git a/DAB.pm b/DAB.pm
index 2f4a4f5fc93ed3273cd7974d6a6a57295e3bbaea..b00368a8b507d2789e18139b42dbc62394d43a3a 100644 (file)
--- a/DAB.pm
+++ b/DAB.pm
@@ -351,6 +351,8 @@ sub new {
        $config->{ostype} = "ubuntu-16.10";
     } elsif ($suite eq 'zesty') {
        $config->{ostype} = "ubuntu-17.04";
+    } elsif ($suite eq 'artful') {
+       $config->{ostype} = "ubuntu-17.10";
     } else {
        die "unsupported debian suite '$suite'\n";
     }
@@ -385,7 +387,7 @@ sub new {
        } elsif ($suite eq 'hardy' || $suite eq 'intrepid' || $suite eq 'jaunty' ||
                 $suite eq 'xenial' || $suite eq 'wily' || $suite eq 'vivid' ||
                 $suite eq 'trusty' || $suite eq 'precise' || $suite eq 'yakkety' ||
-                $suite eq 'zesty') {
+                $suite eq 'zesty' || $suite eq 'artful' ) {
            my $comp = "main restricted universe multiverse";
            push @{$config->{source}}, "http://archive.ubuntu.com/ubuntu SUITE $comp"; 
            push @{$config->{source}}, "http://archive.ubuntu.com/ubuntu SUITE-updates $comp"; 
@@ -453,7 +455,7 @@ sub new {
     # we cannot exclude it (instead we disable udevd)
 
     if ($suite eq 'vivid' || $suite eq 'wily' || $suite eq 'xenial' ||
-       $suite eq 'yakkety' || $suite eq 'zesty') {
+       $suite eq 'yakkety' || $suite eq 'zesty' || $suite eq 'artful') {
        push @$incl, 'isc-dhcp-client';
        push @$excl, qw(libmodule-build-perl);
     } elsif ($suite eq 'trusty') {
@@ -1137,7 +1139,7 @@ sub install_init_script {
     if ($suite eq 'etch' || $suite eq 'lenny') {
        $self->ve_command ("update-rc.d $base start $prio $runlevel .");
     } elsif ($suite eq 'xenial' || $suite eq 'wily' || $suite eq 'vivid' ||
-            $suite eq 'yakkety' || $suite eq 'zesty') {
+            $suite eq 'yakkety' || $suite eq 'zesty' || $suite eq 'artful') {
        die "unable to install init script (system uses systemd)\n";
     } elsif ($suite eq 'trusty' || $suite eq 'precise') {
        die "unable to install init script (system uses upstart)\n";
@@ -1256,7 +1258,7 @@ sub bootstrap {
     # avoid warnings about non-existent resolv.conf
     write_file ("", "$rootdir/etc/resolv.conf", 0644);
 
-    if ($suite eq 'zesty' || $suite eq 'yakkety' ||
+    if ($suite eq 'artful' || $suite eq 'zesty' || $suite eq 'yakkety' ||
        $suite eq 'xenial' || $suite eq 'wily') {
        # no need to configure loopback device
     } else {