From 49c6c6196639118a06c736cee39a745521bcf34d Mon Sep 17 00:00:00 2001 From: Chris Lesiak Date: Wed, 10 Jan 2018 15:35:20 -0600 Subject: [PATCH] Modify systemd tmpfiles.d snippet to create /var/lib/dbus/ This snippet was already attempting to create /var/lib/dbus/machine-id, but would fail on volatile or stateless systems where /var/lib/dbus/ did not already exist. systemd-tmpfiles automatically creates parent directories for tmpfiles of type 'd', 'D', etc., but not for files or symlinks (https://github.com/systemd/systemd/issues/7853). Signed-off-by: Chris Lesiak [smcv: Extended commit message to clarify why we need this] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104577 Reviewed-by: Simon McVittie (cherry picked from commit aeebf801f1ab462cba3a174440c09a86d326002a) --- bus/tmpfiles.d/dbus.conf.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bus/tmpfiles.d/dbus.conf.in b/bus/tmpfiles.d/dbus.conf.in index 754f0220b..664d53a79 100644 --- a/bus/tmpfiles.d/dbus.conf.in +++ b/bus/tmpfiles.d/dbus.conf.in @@ -1,5 +1,9 @@ # Fields: type; path; mode; uid; gid; age; argument (symlink target) +# Make ${localstatedir}/lib/dbus/ +# Adjust mode and ownership if it already exists. +d @EXPANDED_LOCALSTATEDIR@/lib/dbus 0755 - - - + # Make ${localstatedir}/lib/dbus/machine-id a symlink to /etc/machine-id # if it does not already exist L @EXPANDED_LOCALSTATEDIR@/lib/dbus/machine-id - - - - /etc/machine-id -- 2.47.3