[Buildroot] systemd: /var/tmp missing from skeleton

lpdev at cordier.org lpdev at cordier.org
Fri Nov 8 08:33:25 UTC 2019


De : Carlos Santos <unixmania at gmail.com>
À : lpdev at cordier.org
Sujet : Re: [Buildroot] systemd: /var/tmp missing from skeleton
Date : 31/10/2019 18:07:08 Europe/Paris
Copie à : buildroot <buildroot at buildroot.org>

On Thu, Oct 31, 2019 at 1:44 PM <lpdev at cordier.org> wrote:
>
>
>
>
> De : Carlos Santos <unixmania at gmail.com>
> À : lpdev at cordier.org
> Sujet : Re: [Buildroot] systemd: /var/tmp missing from skeleton
> Date : 30/10/2019 23:14:07 Europe/Paris
> Copie à : buildroot <buildroot at buildroot.org>
>
> On Wed, Oct 30, 2019 at 2:45 PM <lpdev at cordier.org> wrote:
> >
> >
> > Hello,
> >
> > Just spotted an issue with the systemd package (note: I'm currently working on buildroot 2019.08.1 tag). Some services on my build are not started properly such as systemd-hostnamed.service, systemd-resolved.service and systemd-timesyncd.service.
> >
> > Some debugging unveiled that all these services are depending on /var/tmp existence (they all have the "PrivateTmp=yes" in their unit). Without this folder on the target filesystem, services will return "Failed to run 'start' task: No such file or directory".
> >
> > In order to fix that issue and submit a patch, I would like to be sure I did not miss a config in buildroot. I think the fix should take place in SKELETON_INIT_SYSTEMD_INSTALL_TARGET_CMDS located in package/skeleton-init-systemd.mk. Am I right?
> >
> > Thanks,
> >
>
> /var/tmp should have been created by systemd-tmpfiles on startup. Did
> you remove the systemd-tmpfiles-setup symlinks from
> /usr/lib/systemd/system/sysinit.target.wants? You can check the ststus
> with systemctl, e.g.
>
>
> Nop, systemd-tmpfiles-setup is present in /usr/lib/systemd/system/sysinit.target.wants. However, "systemctl --all | grep tmp" shows that systemd-tmpfiles-setup.service is marked as inactive and dead. Also systemctl list-dependencies does not show the tmpfiles-setup unit. Do you have any idea of where I can search to solve this problem?

What is your defconfig? Do you have BR2_PACKAGE_SYSTEMD_TMPFILES=y?

-- 
Carlos Santos <unixmania at gmail.com>



Hello,



It seems that it is a bug in systemd. See https://github.com/systemd/systemd/issues/12220#issuecomment-480201981. Can we add a fix into systemd package in buildroot in the meantime?



Note that I also suffers from https://github.com/systemd/systemd/issues/12611 with resolved.



Thanks,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20191108/77fc06f5/attachment.html>


More information about the buildroot mailing list