diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2017-10-06 15:05:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-05-27 05:59:31 +0000 |
commit | 1e03e6dc46624f658239c3179875bd28b67fa91a (patch) | |
tree | 38731aa38565f40cb5419ea8e17af1af84f1f186 /share/scripts/debconf | |
parent | Releasing version 20180503. (diff) | |
download | compute-tools-1e03e6dc46624f658239c3179875bd28b67fa91a.tar.xz compute-tools-1e03e6dc46624f658239c3179875bd28b67fa91a.zip |
Switching to systemd-nspawn configuration files from /etc/container-tools/config.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-x | share/scripts/debconf | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/scripts/debconf b/share/scripts/debconf index 77a974a..8635b8e 100755 --- a/share/scripts/debconf +++ b/share/scripts/debconf @@ -23,7 +23,7 @@ set -e SCRIPT="${0}" export SCRIPT -CONFIG="/etc/container-tools/config" +CONFIG="/etc/systemd/nspawn" HOOKS="/etc/container-tools/hooks" MACHINES="/var/lib/machines" @@ -447,7 +447,7 @@ EOF cp "${DIRECTORY}/usr/share/sysvinit/inittab" "${DIRECTORY}/etc/inittab" fi - # Removing resolv.conf + # Removing resolvc.conf #rm -f "${DIRECTORY}/etc/resolv.conf" # FIXME: needs to stay for the moment rm -f "${DIRECTORY}/etc/resolv.conf" @@ -948,7 +948,7 @@ Commands () -e "s|^bind=.*|bind=${BIND}|g" \ -e "s|^bind-ro=.*|bind-ro=${BIND_RO}|g" \ -e "s|^network-veth-extra=.*|network-veth-extra=${HOST_INTERFACE_NAME}:eno1|g" \ - "${CONFIG}/${NAME}.conf" + "${CONFIG}/${NAME}.nspawn" if [ "${NETWORK_NUMBER}" -ge 2 ] then @@ -966,10 +966,10 @@ Commands () HOST_INTERFACE_NAME="$(echo ${HOST_INTERFACE_NAME:-veth-${HOSTNAME_SHORT}-${NUMBER}})" CONTAINER_INTERFACE_NAME="eno${NUMBER}" - sed -i -e "/^register=.*/ a network-veth-extra=${HOST_INTERFACE_NAME}:${CONTAINER_INTERFACE_NAME}" "${CONFIG}/${NAME}.conf" + sed -i -e "/^register=.*/ a network-veth-extra=${HOST_INTERFACE_NAME}:${CONTAINER_INTERFACE_NAME}" "${CONFIG}/${NAME}.nspawn" eval BRIDGE="$`echo NETWORK${NUMBER}_BRIDGE`" - sed -i -e "/^register=.*/ a cnt.network-bridge=${HOST_INTERFACE_NAME}:${BRIDGE:-bridge${NUMBER}}" "${CONFIG}/${NAME}.conf" + sed -i -e "/^register=.*/ a cnt.network-bridge=${HOST_INTERFACE_NAME}:${BRIDGE:-bridge${NUMBER}}" "${CONFIG}/${NAME}.nspawn" done fi |