From: Stéphane Graber Date: Fri, 16 Feb 2018 21:50:45 +0000 (-0500) Subject: lxc-sabayon: Fix handling of eth0 X-Git-Tag: lxc-3.0.0.beta1~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59ee28f21d2fa4a43bf0bfa50ec9c63a6181264b;p=thirdparty%2Flxc.git lxc-sabayon: Fix handling of eth0 Signed-off-by: Stéphane Graber --- diff --git a/templates/lxc-sabayon.in b/templates/lxc-sabayon.in index 14200e8ac..51594c189 100644 --- a/templates/lxc-sabayon.in +++ b/templates/lxc-sabayon.in @@ -264,6 +264,13 @@ systemd_container_tuning () { # /usr/lib/systemd/system-generators/gentoo-local-generator: line 4: cd: /etc/local.d: No such file or directory mkdir ${rootfs}/etc/local.d/ + mkdir ${rootfs}/etc/systemd/system/NetworkManager.service.d/ + cat < ${rootfs}/etc/systemd/system/NetworkManager.service.d/override.conf +[Service] +ExecStartPre=-/bin/ip -4 link set dev eth0 down +EOF + chmod 644 ${rootfs}/etc/systemd/system/NetworkManager.service.d/override.conf + return 0 }