Good day,

Another issue I've spotted with logind on my system.

"systemd-loginctl enable-linger" goes to src/login/logind-dbus.c:1191,
which seem to do:

  r = safe_mkdir("/var/lib/systemd/linger", 0755, 0, 0);

...and fails, producing something like "D-Bus call failed: No such file
or directory" from systemd-loginctl, because /var/lib/systemd doesn't
seem to be installed during regular "make install".

Not sure if it has to be abstracted via localstatedir or something, but
since it's hard-coded in logind anyway, I thought not to bother with it.


>From ff10029e24cfc4d05228c1ac7b3dc06e615c8e0c Mon Sep 17 00:00:00 2001
From: Mike Kazantsev <mk.frag...@gmail.com>
Date: Wed, 25 Jan 2012 21:24:02 +0600
Subject: [PATCH] build-sys: add creation of /var/lib/systemd path, used by
 logind

---
 Makefile.am |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 15190b4..08296b2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1979,6 +1979,8 @@ polkitpolicy_in_files += \
 
 logind-install-data-hook:
        $(MKDIR_P) -m 0755 \
+               $(DESTDIR)$(rootprefix)/var/lib/systemd
+       $(MKDIR_P) -m 0755 \
                $(DESTDIR)$(systemunitdir)/multi-user.target.wants
        ( cd $(DESTDIR)$(systemunitdir) && \
                rm -f dbus-org.freedesktop.login1.service && \
-- 
1.7.8.1

-- 
Mike Kazantsev // fraggod.net
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to