From a5eea201a1e48d150a78100ec5820cf6e7bbe9c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Fri, 9 Nov 2018 13:41:28 -0500 Subject: [PATCH] sabayon: Don't fail on existing directories MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- templates/lxc-sabayon.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/lxc-sabayon.in b/templates/lxc-sabayon.in index 51594c1..c3c7261 100644 --- a/templates/lxc-sabayon.in +++ b/templates/lxc-sabayon.in @@ -262,9 +262,9 @@ systemd_container_tuning () { # Fix this stupid error until fix is available on sabayon image # /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 -p ${rootfs}/etc/local.d/ - mkdir ${rootfs}/etc/systemd/system/NetworkManager.service.d/ + mkdir -p ${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