incusd/sys: Remove cgroup1 support

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
Stéphane Graber 2026-04-26 19:33:25 +00:00
parent aec0b124d9
commit 5dd5ccbe31
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -79,9 +79,6 @@ type OS struct {
SELinuxContextDaemon string
SELinuxContextInstanceLXC string
// Cgroup features
CGInfo cgroup.Info
// Kernel features
CloseRange bool // CloseRange indicates support for the close_range syscall.
ContainerCoreScheduling bool // ContainerCoreScheduling indicates LXC and kernel support for core scheduling.
@ -190,7 +187,6 @@ func (s *OS) Init() ([]cluster.Warning, error) {
dbWarnings = append(dbWarnings, s.initAppArmor()...)
dbWarnings = append(dbWarnings, s.initSELinux()...)
cgroup.Init()
s.CGInfo = cgroup.GetInfo()
// Fill in the OS release info.
osInfo, err := osarch.GetOSRelease()