mirror of
https://github.com/containers/podman.git
synced 2025-06-25 03:52:15 +08:00
Merge pull request #19189 from pjannesen/issue/19175
Fix: cgroup is not set: internal libpod error after os reboot
This commit is contained in:
@ -21,7 +21,7 @@ func (p *Pod) platformRefresh() error {
|
|||||||
}
|
}
|
||||||
p.state.CgroupPath = cgroupPath
|
p.state.CgroupPath = cgroupPath
|
||||||
case config.CgroupfsCgroupsManager:
|
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())
|
p.state.CgroupPath = filepath.Join(p.config.CgroupParent, p.ID())
|
||||||
|
|
||||||
logrus.Debugf("setting pod cgroup to %s", p.state.CgroupPath)
|
logrus.Debugf("setting pod cgroup to %s", p.state.CgroupPath)
|
||||||
|
Reference in New Issue
Block a user