[systemd-devel] Systemd units complains about cgroup with 5.15.x kernel

Thierry Bultel thierry.bultel at linatsea.fr
Fri Feb 2 06:25:01 UTC 2024


Dear Lennart,

thanks for the tips.

The distro is buildroot, that compiles systemd with " 
-Ddefault-hierarchy=unified ".
Should I consider that the named kernel has incomplete cgroupsv2 support ?
(How can I check that ?).

I would need to cleanup the log before pasting it in a mail, but what I 
can see
is that some services start (NetworkManager), other not (sshd), without 
being able
to guess what makes them to fail or not.

I will obviously try to recompile with "-Ddefault-hierarchy=hybrid" 
today to check
if that makes a change.

Best regards
Thierry


Le 01/02/2024 à 22:27, Lennart Poettering a écrit :
> On Do, 01.02.24 16:30, Thierry Bultel (thierry.bultel at linatsea.fr) wrote:
>
>> Hi,
>>
>> I am using systemd v255,
>> and currently using a kernel vendor branch :
>>
>> git at github.com:varigit/linux-imx.git
>> lf-5.15.y_var01
>> imx_v7_defconfig
>>
>> I had no issue with the older 5.4 kernel.
>>
>> I have verified that the kernel has the following options:
>>
>> CONFIG_DEVTMPFS=y
>> CONFIG_CGROUPS=y
>> CONFIG_INOTIFY_USER=y
>> CONFIG_SIGNALFD=y
>> CONFIG_TIMERFD=y
>> CONFIG_EPOLL=y
>> CONFIG_UNIX=y
>> CONFIG_SYSFS=y
>> CONFIG_PROC_FS=y
>> CONFIG_FHANDLE=y
>>
>> CONFIG_NET_NS=y
>>
>> CONFIG_SYSFS_DEPRECATED is not set
>>
>> CONFIG_AUTOFS_FS=y
>> CONFIG_AUTOFS4_FS=y
>> CONFIG_TMPFS_POSIX_ACL=y
>> CONFIG_TMPFS_XATTR=y
>>
>> --->
>>
>> systemd is failing to start some units:
>>
>> systemd[1]: wpa_supplicant.service: Failed to create cgroup
>> /system.slice/wpa_supplicant.service: No such file or directory
>> and also;
>>   (agetty)[217]:serial-getty at ttymxc0.service: Failed to attach to cgroup
>> /system.slice/system-serial\x2dgetty.slice/serial-getty at ttymxc0.service: No
>> medium found
>>
>> ... and I do not have a serial console.
>>
>> I am currently digging into systemd code to find out what is possibly wrong
>> .. but if anyone gets a clue, I would appreciate !
> Educated guess, you have no cgroupvs2 or so?
>
> Would make sense to provide logs?, use strace to check what precisely
> fails?
>
> Ask you distro for help?
>
> Lennart
>
> --
> Lennart Poettering, Berlin

-- 
Re: test
www.linatsea.fr <www.linatsea.fr>
-- 
www.linatsea.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240202/3a2004d3/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: penguin.png
Type: image/png
Size: 60087 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240202/3a2004d3/attachment-0001.png>


More information about the systemd-devel mailing list