summaryrefslogtreecommitdiff
path: root/libpod/runtime_ctr.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-29 10:53:41 -0400
committerGitHub <noreply@github.com>2020-06-29 10:53:41 -0400
commit6ac009d5304127f6758be157c7302646e5a481e5 (patch)
tree75f186484198eb84f18c575e86032e25d5e819a3 /libpod/runtime_ctr.go
parent771c887010709cdf718be252ca91a852c6735da7 (diff)
parent6ee5f740a4ecb70636b888e78b02065ee984636c (diff)
downloadpodman-6ac009d5304127f6758be157c7302646e5a481e5.tar.gz
podman-6ac009d5304127f6758be157c7302646e5a481e5.tar.bz2
podman-6ac009d5304127f6758be157c7302646e5a481e5.zip
Merge pull request #6666 from giuseppe/conmon-delegate
podman: add new cgroup mode split
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r--libpod/runtime_ctr.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index f1752cbeb..dd6602acb 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -233,9 +233,9 @@ func (r *Runtime) setupContainer(ctx context.Context, ctr *Container) (_ *Contai
return nil, errors.Wrapf(err, "error retrieving pod %s cgroup", pod.ID())
}
ctr.config.CgroupParent = podCgroup
- case rootless.IsRootless():
+ case rootless.IsRootless() && ctr.config.CgroupsMode != cgroupSplit:
ctr.config.CgroupParent = SystemdDefaultRootlessCgroupParent
- default:
+ case ctr.config.CgroupsMode != cgroupSplit:
ctr.config.CgroupParent = SystemdDefaultCgroupParent
}
} else if len(ctr.config.CgroupParent) < 6 || !strings.HasSuffix(path.Base(ctr.config.CgroupParent), ".slice") {