* [Buildroot] Systemd no longer working when transitioning from 2017.02.3 to 2017.05 @ 2017-06-20 6:29 Amr Bekhit 2017-07-03 19:53 ` Jan Kundrát 0 siblings, 1 reply; 3+ messages in thread From: Amr Bekhit @ 2017-06-20 6:29 UTC (permalink / raw) To: buildroot Hello all, I've been using systemd with buildroot 2017.02.3 with no problems. I've recently made the transition to 2017.05 and now on bootup, the systemd-resolved and systemd-timesyncd services fail to start. I've pasted their error messages on pastebin: Startup log: https://pastebin.com/TtSmZF7F systemd-timesyncd: https://pastebin.com/qC2QMnRN systemd-resolved: https://pastebin.com/z0U5w98Y Config file for 2017.02.3: https://pastebin.com/R8JvrkLa Config file for 2017.05: https://pastebin.com/mMPurrqf Both systems were built for an Atmel SAMA5D4 Xplained board. The config file for 2017.05 was created manually by going through the options in the 2017.02.3 menuconfig and adding them in. Amr ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Systemd no longer working when transitioning from 2017.02.3 to 2017.05 2017-06-20 6:29 [Buildroot] Systemd no longer working when transitioning from 2017.02.3 to 2017.05 Amr Bekhit @ 2017-07-03 19:53 ` Jan Kundrát 2017-07-04 16:36 ` Yann E. MORIN 0 siblings, 1 reply; 3+ messages in thread From: Jan Kundrát @ 2017-07-03 19:53 UTC (permalink / raw) To: buildroot 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Systemd no longer working when transitioning from 2017.02.3 to 2017.05 2017-07-03 19:53 ` Jan Kundrát @ 2017-07-04 16:36 ` Yann E. MORIN 0 siblings, 0 replies; 3+ messages in thread From: Yann E. MORIN @ 2017-07-04 16:36 UTC (permalink / raw) To: buildroot Jan, Amr, All, On 2017-07-03 21:53 +0200, Jan Kundr?t spake thusly: > 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. I've done quite some progress on this branch during the (extended) week-end, but it is still not 100% ready yet. > 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. Yup, I have your earlier mail still in my inbox about this, sorry I did not follow up on it. It plan on stabiolising this work, and when it is stable I'll address your issue as well. Thanks for the reminder! ;-) > I'm not updating the bug because Bugzilla won't load for me right now for > some reason. Yup, it seems there have been a few hiccups on the server in the recent past... :-/ Regards, Yann E. MORIN. > Cheers, > Jan > > [1] > https://git.buildroot.org/~ymorin/git/buildroot/log/?h=yem/systemd-skeleton-2 > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-07-04 16:36 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-06-20 6:29 [Buildroot] Systemd no longer working when transitioning from 2017.02.3 to 2017.05 Amr Bekhit 2017-07-03 19:53 ` Jan Kundrát 2017-07-04 16:36 ` Yann E. MORIN
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox