summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2016-07-31 15:40:01 +0100
committerNeil Williams <codehelp@debian.org>2016-07-31 15:40:01 +0100
commitea0b38bb901d2e224f829e540dc50ed13b4d204e (patch)
treebd423c86242791e952ec46dd8de8d254eb867da0 /bin
parent369740cc28df41007a08b9690ee9df4958b4e03f (diff)
downloadvmdebootstrap-ea0b38bb901d2e224f829e540dc50ed13b4d204e.tar.gz
ensure eth0 exists for jessie if dhcp requested
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vmdebootstrap3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap
index 006e4af..dc16c61 100755
--- a/bin/vmdebootstrap
+++ b/bin/vmdebootstrap
@@ -321,6 +321,9 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
network.systemd_support(rootdir)
if not distro.was_stable(datetime.date(2015, 4, 26)):
network.enable_systemd_resolved(rootdir)
+ else:
+ # /etc/network/interfaces.d/
+ network.setup_networking(rootdir)
else:
# /etc/network/interfaces.d/
network.setup_networking(rootdir)