From e0aa12142fcb594981989df9e2386b45cff15cbd Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Dec 13 2017 03:37:04 +0000 Subject: update scriptlet for migrating to DynamicUser= The directory /var/lib/systemd/journal-upload must not exist. If both private and non-private directory exist, then systemd cannot create link to private directory, and the service fails to start. This makes the script try to remove the non-private directory. --- diff --git a/systemd.spec b/systemd.spec index 511e02c..8fd30c5 100644 --- a/systemd.spec +++ b/systemd.spec @@ -633,6 +633,7 @@ if [ $1 -eq 1 ] ; then if [ -f %{_localstatedir}/lib/systemd/journal-upload/state -a ! -L %{_localstatedir}/lib/systemd/journal-upload ] ; then mkdir -p %{_localstatedir}/lib/private/systemd/journal-upload mv %{_localstatedir}/lib/systemd/journal-upload/state %{_localstatedir}/lib/private/systemd/journal-upload/. + rmdir %{_localstatedir}/lib/systemd/journal-upload || : fi fi