From 06c7e7159e89b7aeea7ec23520a87a88c46a4243 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Dec 14 2017 03:25:18 +0000 Subject: post: Be rofiles-fuse compatible This fixes corruption I saw when using unified core 🌐 mode; we ended up appending repeatedly to the version in the imported pkgcache repo. --- diff --git a/treecompose-post.sh b/treecompose-post.sh index 2aa1068..f1f23d0 100755 --- a/treecompose-post.sh +++ b/treecompose-post.sh @@ -3,4 +3,8 @@ set -xeuo pipefail # Work around https://bugzilla.redhat.com/show_bug.cgi?id=1265295 -echo 'Storage=persistent' >> /etc/systemd/journald.conf +# Also note the create-new-then-rename dance for rofiles-fuse compat +if ! grep -q '^Storage=persistent' /etc/systemd/journald.conf; then + (cat /etc/systemd/journald.conf && echo 'Storage=persistent') > /etc/systemd.journald.conf.new + mv /etc/systemd.journald.conf{.new,} +fi