From be0604f8f6fbb4891e1c9d93b61a76c922a465c1 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 12 Nov 2018 11:52:19 +0100 Subject: in bridge mode, do not copy the physical interface configuration This prevents systemd from bringing down the interface leading to a short network outage, delaying the rest of the boot process until it has brought it up again. --- .../modules.d/systemd-networkd-ext/hooks/configure-dhcp-for-newroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/modules.d/systemd-networkd-ext/hooks/configure-dhcp-for-newroot.sh b/builder/modules.d/systemd-networkd-ext/hooks/configure-dhcp-for-newroot.sh index 255b629e..1b300360 100644 --- a/builder/modules.d/systemd-networkd-ext/hooks/configure-dhcp-for-newroot.sh +++ b/builder/modules.d/systemd-networkd-ext/hooks/configure-dhcp-for-newroot.sh @@ -14,7 +14,7 @@ NETWORKD_DIR="/etc/systemd/network" mkdir -p "${NEWROOT}/${NETWORKD_DIR}" # dirname a-la bash # First, copy over every configuration made so far -cp "${NETWORKD_DIR}/"* "${NEWROOT}/${NETWORKD_DIR}" +cp "${NETWORKD_DIR}/${SLX_BRIDGE}"* "${NEWROOT}/${NETWORKD_DIR}" # Workaround: UseHostname seems broken, so manually set the hostname for now... [ -n "${SLX_HOSTNAME}" ] && echo "${SLX_HOSTNAME}" > $NEWROOT/etc/hostname -- cgit v1.2.3-55-g7522