blob: aba0b4a6f66cee7010e0a09cedb9ef0ac2fae091 [file] [log] [blame]
From fcd48e672489f41c9977e092937ff806a7e772bd Mon Sep 17 00:00:00 2001
From: Lorenz Brun <lorenz@monogon.tech>
Date: Thu, 11 Nov 2021 13:58:50 +0100
Subject: [PATCH] Make systemd cgroup optional
This breaks gVisor on systems that use custom inits/cgroup setups which
don't have this cgroup and don't need it.
---
runsc/cgroup/cgroup.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runsc/cgroup/cgroup.go b/runsc/cgroup/cgroup.go
index 0eb5821a9..2116bddca 100644
--- a/runsc/cgroup/cgroup.go
+++ b/runsc/cgroup/cgroup.go
@@ -58,7 +58,7 @@ var controllers = map[string]controller{
"freezer": &noop{},
"perf_event": &noop{},
"rdma": &noop{isOptional: true},
- "systemd": &noop{},
+ "systemd": &noop{isOptional: true},
}
// IsOnlyV2 checks whether cgroups V2 is enabled and V1 is not.
--
2.25.1