]> git.proxmox.com Git - dab.git/commitdiff
do not write /etc/network/interfaces for ubuntu wily
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 31 Oct 2015 16:16:53 +0000 (17:16 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 31 Oct 2015 16:16:53 +0000 (17:16 +0100)
DAB.pm

diff --git a/DAB.pm b/DAB.pm
index e02cf10fb528e3fc3993d7cb9897d9fc674c2da1..dd72970226e3aa870e33762e0a69ce2c2c3a82a5 100644 (file)
--- a/DAB.pm
+++ b/DAB.pm
@@ -1229,8 +1229,12 @@ sub bootstrap {
     # avoid warnings about non-existent resolv.conf
     write_file ("", "$rootdir/etc/resolv.conf", 0644);
 
-    $data = "auto lo\niface lo inet loopback\n";
-    write_file ($data, "$rootdir/etc/network/interfaces", 0644);
+    if ($suite eq 'wily') {
+       # no need to configure loopback device
+    } else {
+       $data = "auto lo\niface lo inet loopback\n";
+       write_file ($data, "$rootdir/etc/network/interfaces", 0644);
+    }
 
     # setup devices
     $self->run_command ("tar xzf '$devicetar' -C '$rootdir'");