sabayon: Don't fail on existing directories

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2018-11-09 13:41:28 -05:00
parent 3cf05db0d9
commit a5eea201a1
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -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 <<EOF > ${rootfs}/etc/systemd/system/NetworkManager.service.d/override.conf
[Service]
ExecStartPre=-/bin/ip -4 link set dev eth0 down