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.
This commit is contained in:
Owen W. Taylor 2016-10-10 16:24:08 -04:00
parent 44883daf24
commit 392bd281cd
1 changed files with 3 additions and 0 deletions

View File

@ -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' {} \;