[Buildroot] Systemd no longer working when transitioning from 2017.02.3 to 2017.05
Jan Kundrát
jan.kundrat at cesnet.cz
Mon Jul 3 19:53:43 UTC 2017
On úterý 20. června 2017 8:29:02 CEST, Amr Bekhit wrote:
> Startup log: https://pastebin.com/TtSmZF7F
> systemd-timesyncd: https://pastebin.com/qC2QMnRN
> systemd-resolved: https://pastebin.com/z0U5w98Y
You've linked to pastebin, so in case these links disappear in a few
days/years, here's the relevant part:
> # journalctl -xe -u systemd-timesyncd
> -- Logs begin at Mon 2017-06-19 13:59:33 +03, end at Mon 2017-06-19 14:01:03 +03. --
> Jun 19 13:59:35 xplained-d4 systemd[1]: Starting Network Time Synchronization...
> -- Subject: Unit systemd-timesyncd.service has begun start-up
> -- Defined-By: systemd
> -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
> --
> -- Unit systemd-timesyncd.service has begun starting up.
> Jun 19 13:59:35 xplained-d4 systemd[899]: systemd-timesyncd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-timesyncd: No such file or directory
This is https://bugs.busybox.net/show_bug.cgi?id=9926 .
Buildroot's default filesystem layout breaks those units for which systemd
tries to use a private filesystem/mount namespace. In particular /tmp,
/var/tmp etc are relevant here. A correct fix is to ensure that the root
filesystem does *not* include symlinks for these directories because they
prevent creating the overlaying mounts.
There's some work-in-progress at [1] which attempts to re-structure the
rootfs and which also makes it more systemd-friendly. For me, it breaks
compilation with the Linaro toolchain (one has to run one mkdir between
`make toolchain` and `make all`), but otherwise it looks like a good thing
to do.
I'm not updating the bug because Bugzilla won't load for me right now for
some reason.
Cheers,
Jan
[1]
https://git.buildroot.org/~ymorin/git/buildroot/log/?h=yem/systemd-skeleton-2
More information about the buildroot
mailing list