diff options
author | Nik Lutz <nik@netstyle.ch> | 2016-05-12 15:40:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-05-18 18:26:06 +0000 |
commit | bc53e5a0e1a692200313d64ff0a1fd8d8b34ab4f (patch) | |
tree | 182218c80b551f28ec8109c8de324acef1dd026d /share/scripts/debconf.d/0003-debconf | |
parent | Adding veth name (cnt-debconf/network[0-9]/veth) configuration option to debc... (diff) | |
download | compute-tools-bc53e5a0e1a692200313d64ff0a1fd8d8b34ab4f.tar.xz compute-tools-bc53e5a0e1a692200313d64ff0a1fd8d8b34ab4f.zip |
Using systemd-nspawn '--network-veth-extra=' instead of '--network-veth' (prerequisite for multiple network interface support per container).
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-x | share/scripts/debconf.d/0003-debconf | 4 |
1 files changed, 2 insertions, 2 deletions
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}" |