From 392bd281cdd48c12fa6e36feb7fd4b75f41d5694 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Mon, 10 Oct 2016 16:24:08 -0400 Subject: [PATCH] Work around systemd issue with ProtectHome Systemd has issues with the ProtectHome directive when /home is a symlink. Since this is used by several systemd-provided services, this causes problems with starting them up. Work around this temporarily by removing these lines. (The issue will be fixed in systemd 232) Copied from atomic-ws. --- post.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/post.sh b/post.sh index d139161..9698163 100755 --- a/post.sh +++ b/post.sh @@ -6,3 +6,6 @@ set -xeuo pipefail # aspects of that have been fixed, but apparently this is still # necessary, and generally makes things less finicky echo 'Storage=persistent' >> /etc/systemd/journald.conf + +# Work around https://github.com/systemd/systemd/issues/4082 +find /usr/lib/systemd/system/ -type f -exec sed -i -e '/^PrivateTmp=/d' -e '/^Protect\(Home\|System\)=/d' {} \;