ci-test/post.sh
Owen W. Taylor 392bd281cd 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.
2016-10-10 16:31:53 -04:00

11 lines
445 B
Bash
Executable file

#!/bin/bash
set -xeuo pipefail
# See https://bugzilla.redhat.com/show_bug.cgi?id=1265295 ; some
# 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' {} \;