[systemd-devel] [PATCH] build-sys: add creation of /var/lib/systemd path, used by logind

Kay Sievers kay.sievers at vrfy.org
Wed Jan 25 07:43:35 PST 2012


On Wed, Jan 25, 2012 at 16:33, Mike Kazantsev <mk.fraggod at gmail.com> wrote:
> 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.
>  logind-install-data-hook:
>        $(MKDIR_P) -m 0755 \
> +               $(DESTDIR)$(rootprefix)/var/lib/systemd
> +       $(MKDIR_P) -m 0755 \

It probably is: $(localstatedir)/lib. Rootprefix must not be involved.
That stuff is never in /usr.

Kay


More information about the systemd-devel mailing list