Skip to content

Misc cgroup fixes - #498

Merged
troglobit merged 2 commits into
masterfrom
misc-cgroup
Aug 13, 2026
Merged

Misc cgroup fixes#498
troglobit merged 2 commits into
masterfrom
misc-cgroup

Conversation

@troglobit

Copy link
Copy Markdown
Collaborator

Possibly fixes #497

The kernel delegation docs require write access on the directory so
the delegatee can mkdir() children.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
A cgroup holding processes cannot enable controllers for its children,
so init/ had to stay a leaf.  The hotplug helpers 10-hotplug.conf.in
places there ended up in groups where cpu.weight and friends could
never be set.

Keeping PID 1 in the root cgroup makes init/ a domain like the others.
It also unbreaks lxc-based runtimes: liblxc bases the container tree on
PID 1's cgroup and only special-cases systemd's init.scope/, so under
Finit it landed containers in init/, with no controllers available.

Issue #497

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
@aanderse

Copy link
Copy Markdown
Contributor

can confirm that incus works great on my system with this 🚀 thank you @troglobit!

@troglobit

Copy link
Copy Markdown
Collaborator Author

can confirm that incus works great on my system with this 🚀 thank you @troglobit!

Excellent! Then that's the way to go, thank you for taking the time to verify! <3

@troglobit
troglobit merged commit ae9a24f into master Aug 13, 2026
5 checks passed
@troglobit
troglobit deleted the misc-cgroup branch August 13, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature request] cgroup delegation insufficient for lxd/incus?

2 participants