mirror of
https://github.com/containers/podman
synced 2024-10-18 16:24:34 +00:00
Fix: cgroup is not set: internal libpod error after os reboot
[NO NEW TESTS NEEDED] Closes #19175 Signed-off-by: Peter Jannesen <peter@jannesen.com>
This commit is contained in:
parent
2581352212
commit
d0b0c62853
|
@ -21,7 +21,7 @@ func (p *Pod) platformRefresh() error {
|
|||
}
|
||||
p.state.CgroupPath = cgroupPath
|
||||
case config.CgroupfsCgroupsManager:
|
||||
if rootless.IsRootless() && isRootlessCgroupSet(p.config.CgroupParent) {
|
||||
if !rootless.IsRootless() || isRootlessCgroupSet(p.config.CgroupParent) {
|
||||
p.state.CgroupPath = filepath.Join(p.config.CgroupParent, p.ID())
|
||||
|
||||
logrus.Debugf("setting pod cgroup to %s", p.state.CgroupPath)
|
||||
|
|
Loading…
Reference in a new issue