]> git.proxmox.com Git - dab.git/commitdiff
add support for upcomming Ubuntu 20.04 "Focal Fossa"
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Feb 2020 10:42:52 +0000 (11:42 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Feb 2020 10:47:04 +0000 (11:47 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
DAB.pm

diff --git a/DAB.pm b/DAB.pm
index 6ce5f67f9bb7fbc3c50aad70b689d1b8f41ff589..b0e140335893bd478721ac97cb51b9e0d5670da2 100644 (file)
--- a/DAB.pm
+++ b/DAB.pm
@@ -159,6 +159,10 @@ my $supported_suites = {
        ostype => "ubuntu-19.10",
        origin => 'ubuntu',
     },
+    'focal' => {
+       ostype => "ubuntu-20.04",
+       origin => 'ubuntu',
+    },
 };
 
 sub get_suite_info {
@@ -546,7 +550,7 @@ sub new {
     if ($suite eq 'vivid' || $suite eq 'wily' || $suite eq 'xenial' ||
        $suite eq 'yakkety' || $suite eq 'zesty' || $suite eq 'artful' ||
        $suite eq 'bionic' || $suite eq 'cosmic' || $suite eq 'disco' ||
-       $suite eq 'eoan') {
+       $suite eq 'eoan' || $suite eq 'focal') {
        push @$incl, 'isc-dhcp-client';
        push @$excl, qw(libmodule-build-perl);
     } elsif ($suite eq 'trusty') {
@@ -1232,7 +1236,7 @@ sub install_init_script {
     } elsif ($suite eq 'xenial' || $suite eq 'wily' || $suite eq 'vivid' ||
             $suite eq 'yakkety' || $suite eq 'zesty' || $suite eq 'artful' ||
             $suite eq 'bionic' || $suite eq 'cosmic' || $suite eq 'disco' ||
-            $suite eq 'eoan') {
+            $suite eq 'eoan' || $suite eq 'focal') {
        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";
@@ -1351,7 +1355,7 @@ sub bootstrap {
     # avoid warnings about non-existent resolv.conf
     write_file ("", "$rootdir/etc/resolv.conf", 0644);
 
-    if ($suite eq 'eoan' || $suite eq 'disco' || $suite eq 'cosmic' ||
+    if ($suite eq 'focal' || $suite eq 'eoan' || $suite eq 'disco' || $suite eq 'cosmic' ||
        $suite eq 'bionic' || $suite eq 'artful' ||
        $suite eq 'zesty' || $suite eq 'yakkety' || $suite eq 'xenial' ||
        $suite eq 'wily') {