diff --git a/templates/lxc-sabayon.in b/templates/lxc-sabayon.in index fb9e62f58..51594c189 100644 --- a/templates/lxc-sabayon.in +++ b/templates/lxc-sabayon.in @@ -264,13 +264,12 @@ 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/ - # Fix TERM variable for container console - mkdir container-getty\@0.service.d - cat < container-getty\@0.service.d/00gentoo.conf + mkdir ${rootfs}/etc/systemd/system/NetworkManager.service.d/ + cat < ${rootfs}/etc/systemd/system/NetworkManager.service.d/override.conf [Service] -Environment=TERM= -Environment=TERM=linux +ExecStartPre=-/bin/ip -4 link set dev eth0 down EOF + chmod 644 ${rootfs}/etc/systemd/system/NetworkManager.service.d/override.conf return 0 }