From bc53e5a0e1a692200313d64ff0a1fd8d8b34ab4f Mon Sep 17 00:00:00 2001 From: Nik Lutz Date: Thu, 12 May 2016 17:40:10 +0200 Subject: Using systemd-nspawn '--network-veth-extra=' instead of '--network-veth' (prerequisite for multiple network interface support per container). Signed-off-by: Daniel Baumann --- share/scripts/debconf.d/0003-debconf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/scripts/debconf.d/0003-debconf') diff --git a/share/scripts/debconf.d/0003-debconf b/share/scripts/debconf.d/0003-debconf index d1fd7e1..df14ef0 100755 --- a/share/scripts/debconf.d/0003-debconf +++ b/share/scripts/debconf.d/0003-debconf @@ -673,10 +673,10 @@ Network_defaults () # * respect pre-existing interfaces (or interfaces.d) # * add support for bridges (make interface configuration more generic?) - HOSTNAME_SHORT="$(echo ${NAME} | cut -c-9)" + HOSTNAME_SHORT="$(echo veth-$(echo ${NAME} | cut -c-8)-0)" VETH_NAME="$(echo ${HOSTNAME_SHORT:-veth0})" - NETWORK0_VETH="${NETWORK0_VETH:-VETH_NAME}" + NETWORK0_VETH="${NETWORK0_VETH:-$VETH_NAME}" NETWORK0_BRIDGE="${NETWORK0_BRIDGE:-br0}" NETWORK0_IPV4_METHOD="${NETWORK0_IPV4_METHOD:-dhcp}" NETWORK0_IPV4_ADDRESS="${NETWORK0_IPV4_ADDRESS:-192.168.1.2}" -- cgit v1.2.3