Skip to content

Commit

Permalink
Merge pull request #19189 from pjannesen/issue/19175
Browse files Browse the repository at this point in the history
Fix: cgroup is not set: internal libpod error after os reboot
  • Loading branch information
openshift-merge-robot authored Jul 11, 2023
2 parents bd85be4 + 4494cef commit b1dd0a3
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 b1dd0a3

Please sign in to comment.