From 89599c3d236e11d4a448be05898ce26ec4490c0c Mon Sep 17 00:00:00 2001 From: Owen W. Taylor Date: Oct 10 2016 20:38:40 +0000 Subject: [PATCH 1/3] Add an empty postprocess script This is a place to add workarounds and config changes --- diff --git a/fedora-ostree-workstation.json b/fedora-ostree-workstation.json index a3e871e..12bf055 100644 --- a/fedora-ostree-workstation.json +++ b/fedora-ostree-workstation.json @@ -18,6 +18,8 @@ "check-passwd": { "type": "file", "filename": "passwd" }, "check-groups": { "type": "file", "filename": "group" }, + "postprocess-script": "post.sh", + "packages": [ "aajohan-comfortaa-fonts", "abrt", diff --git a/post.sh b/post.sh new file mode 100755 index 0000000..0827765 --- /dev/null +++ b/post.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +set -xeuo pipefail From 27ecd213e3c64b55c1cb36f21a64446d948a6d27 Mon Sep 17 00:00:00 2001 From: Owen W. Taylor Date: Oct 10 2016 20:38:47 +0000 Subject: [PATCH 2/3] Fix problem with systemd logs not being persisted During the boot with ostree, the detection of whether the logs on the system should be persisted can be confused. Explicitely configure them to be persisted. Copied from atomic-ws. --- diff --git a/post.sh b/post.sh index 0827765..d139161 100755 --- a/post.sh +++ b/post.sh @@ -1,3 +1,8 @@ #!/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 From fe7cd3eaab0eb043ab3513228aa326c70980d9a6 Mon Sep 17 00:00:00 2001 From: Owen W. Taylor Date: Oct 10 2016 20:38:54 +0000 Subject: [PATCH 3/3] 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. --- 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' {} \;