Message ID | 20250127-faq-no-systemd-v1-1-e9945bb090ef@bootlin.com |
---|---|
State | New |
Headers | show |
Series | [yocto-docs] ref-manual/faq: add q&a on systemd as default | expand |
Hi Antonin, On 1/27/25 4:52 PM, Antonin Godard via lists.yoctoproject.org wrote: > Originally written by Richard Purdie, but formatted in rst syntax and > slight rephrasing. > > Cc: Richard Purdie <richard.purdie@linuxfoundation.org> > Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> > --- > documentation/ref-manual/faq.rst | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/documentation/ref-manual/faq.rst b/documentation/ref-manual/faq.rst > index 9e3418e10..827d8d307 100644 > --- a/documentation/ref-manual/faq.rst > +++ b/documentation/ref-manual/faq.rst > @@ -45,6 +45,28 @@ See :yocto_wiki:`Products that use the Yocto Project > Wiki. Don't hesitate to contribute to this page if you know other such > products. > > +Why isn't systemd the default init system for OpenEmbedded-Core/Yocto Project or in Poky? > +----------------------------------------------------------------------------------------- > + > +`systemd <https://systemd.io/>`__ is a desktop Linux init system with a specific > +focus that is not entirely aligned with a customisable "embedded" build > +system/environment. > + > +It understandably mandates certain layouts and configurations which may > +or may not align with what the objectives and direction :term:`OpenEmbedded-Core > +(OE-Core)` or Yocto Project want to take. It doesn't support all of our targets. > +For example `musl <https://www.musl-libc.org/>`__ support in systemd is > +problematic. > + > +If it were our default, we would have to align with all their choices > +and this doesn't make sense. It is therefore a configuration option and > +available to anyone where the design goals align. But we are clear it > +is not the only way to handle init. > + > +Our automated testing includes it through ``poky-altcfg`` and we I would make it explicit that poky-altcfg is a DISTRO. Otherwise, looks good to me. Cheers, Quentin
diff --git a/documentation/ref-manual/faq.rst b/documentation/ref-manual/faq.rst index 9e3418e10..827d8d307 100644 --- a/documentation/ref-manual/faq.rst +++ b/documentation/ref-manual/faq.rst @@ -45,6 +45,28 @@ See :yocto_wiki:`Products that use the Yocto Project Wiki. Don't hesitate to contribute to this page if you know other such products. +Why isn't systemd the default init system for OpenEmbedded-Core/Yocto Project or in Poky? +----------------------------------------------------------------------------------------- + +`systemd <https://systemd.io/>`__ is a desktop Linux init system with a specific +focus that is not entirely aligned with a customisable "embedded" build +system/environment. + +It understandably mandates certain layouts and configurations which may +or may not align with what the objectives and direction :term:`OpenEmbedded-Core +(OE-Core)` or Yocto Project want to take. It doesn't support all of our targets. +For example `musl <https://www.musl-libc.org/>`__ support in systemd is +problematic. + +If it were our default, we would have to align with all their choices +and this doesn't make sense. It is therefore a configuration option and +available to anyone where the design goals align. But we are clear it +is not the only way to handle init. + +Our automated testing includes it through ``poky-altcfg`` and we +don't really need it to be the default: it is tested, it works, and people +can choose to use it. + Building environment ====================
Originally written by Richard Purdie, but formatted in rst syntax and slight rephrasing. Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- documentation/ref-manual/faq.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) --- base-commit: caedbca4eced4cf5bc74aaae64e4ad2887c2fc65 change-id: 20250127-faq-no-systemd-61bef48e49ea Best regards,