]> git.proxmox.com Git - dab.git/commitdiff
add support for ubuntu 18.04 (bionic beaver)
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 23 Apr 2018 08:46:18 +0000 (10:46 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 23 Apr 2018 08:46:18 +0000 (10:46 +0200)
DAB.pm

diff --git a/DAB.pm b/DAB.pm
index c52a58991a2a9fcbd5260946c8ad3ba9c79c5d4d..ef441e79f0b2d075399df96e2894cadefc582410 100644 (file)
--- a/DAB.pm
+++ b/DAB.pm
@@ -359,6 +359,8 @@ sub new {
        $config->{ostype} = "ubuntu-17.04";
     } elsif ($suite eq 'artful') {
        $config->{ostype} = "ubuntu-17.10";
        $config->{ostype} = "ubuntu-17.04";
     } elsif ($suite eq 'artful') {
        $config->{ostype} = "ubuntu-17.10";
+    } elsif ($suite eq 'bionic') {
+       $config->{ostype} = "ubuntu-18.04";
     } else {
        die "unsupported debian suite '$suite'\n";
     }
     } else {
        die "unsupported debian suite '$suite'\n";
     }
@@ -393,7 +395,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' ||
        } 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 'artful' ) {
+                $suite eq 'zesty' || $suite eq 'artful' || $suite eq 'bionic') {
            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"; 
            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"; 
@@ -461,7 +463,8 @@ sub new {
     # we cannot exclude it (instead we disable udevd)
 
     if ($suite eq 'vivid' || $suite eq 'wily' || $suite eq 'xenial' ||
     # 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 'artful') {
+       $suite eq 'yakkety' || $suite eq 'zesty' || $suite eq 'artful' ||
+       $suite eq 'bionic') {
        push @$incl, 'isc-dhcp-client';
        push @$excl, qw(libmodule-build-perl);
     } elsif ($suite eq 'trusty') {
        push @$incl, 'isc-dhcp-client';
        push @$excl, qw(libmodule-build-perl);
     } elsif ($suite eq 'trusty') {
@@ -1145,7 +1148,8 @@ 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' ||
     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 'artful') {
+            $suite eq 'yakkety' || $suite eq 'zesty' || $suite eq 'artful' ||
+            $suite eq 'bionic') {
        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";
        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";
@@ -1264,8 +1268,8 @@ sub bootstrap {
     # avoid warnings about non-existent resolv.conf
     write_file ("", "$rootdir/etc/resolv.conf", 0644);
 
     # avoid warnings about non-existent resolv.conf
     write_file ("", "$rootdir/etc/resolv.conf", 0644);
 
-    if ($suite eq 'artful' || $suite eq 'zesty' || $suite eq 'yakkety' ||
-       $suite eq 'xenial' || $suite eq 'wily') {
+    if ($suite eq 'bionic' || $suite eq 'artful' || $suite eq 'zesty' ||
+       $suite eq 'yakkety' || $suite eq 'xenial' || $suite eq 'wily') {
        # no need to configure loopback device
     } else {
        $data = "auto lo\niface lo inet loopback\n";
        # no need to configure loopback device
     } else {
        $data = "auto lo\niface lo inet loopback\n";