Re: [OE-core] [PATCH] systemd: Stop supporting sysvinit compatibility

Mathieu Dubois-Briand
2026-02-16T06:51:59Z

On Sun Feb 15, 2026 at 6:03 PM CET, Richard Purdie wrote:
> Hi Mattieu,
>
> On Sun, 2026-02-15 at 17:32 +0100, Mathieu Dubois-Briand wrote:
>> On Fri Feb 13, 2026 at 6:56 PM CET, Richard Purdie via lists.openembedded.org wrote:
>> > Systemd has worked with sysvinit compatibility but upstream plans to remove
>> > this and hence we will no longer be able to support it. We need to remove this
>> > before the LTS since the support will certainly not be there for the lifetime
>> > of the LTS.
>> >
>> > This patch disables that usage mode and removes some of the compatibility logic.
>> > There is more that can be removed, this is meant just to signal to people it is
>> > no longer supported and start that process. Further cleanup can be made over time
>> > in later commits.
>> >
>> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>>
>> I suspect we also want to remove the "Systemd with sysvinit compat" and
>> "Sysvinit with systemd" steps from qa-extras2:
>>
>> https://autobuilder.yoctoproject.org/valkyrie/#/builders/26/builds/3165
>> https://git.yoctoproject.org/yocto-autobuilder-helper/tree/config.json#n1562
>
> Yes, that is on my todo list! I knew we had a few tests to remove, I
> think that is the only one I haven't patched yet. Thankfully an easy
> tweak for a change.
>
> Cheers,
>
> Richard

Just in case: I also noted following selftests:

bbclasses.Systemd.test_systemd_and_sysvinit_in_distro
overlayfs.OverlayFSTests.test_not_all_units_installed
overlayfs.OverlayFSTests.test_not_all_units_installed_but_qa_skipped

Thanks,
Mathieu

--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering