Skip to content

Commit

Permalink
Fix: cgroup is not set: internal libpod error after os reboot
Browse files Browse the repository at this point in the history
[NO NEW TESTS NEEDED]
Closes containers#19175

Signed-off-by: Peter Jannesen <[email protected]>
  • Loading branch information
pjannesen authored and ashley-cui committed Jul 13, 2023
1 parent 2581352 commit d0b0c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/pod_internal_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d0b0c62

Please sign in to comment.