runtime: remove prefix when cgroups are managed by systemd
as done previously in
@@ -590,10 +590,12 @@ func (s *Sandbox) createCgroups() error {
// CPUSet.
// For the sandbox cgroups we create and manage, rename the base of the cgroup path to
// include "kata_"
+ if !cgroups.IsSystemdCgroup(cgroupPath) { // don't add prefix when cgroups are managed by systemd
cgroupPath, err = cgroups.RenameCgroupPath(cgroupPath)
if err != nil {
return err
}
+ }
if spec.Linux.Resources != nil {
resources.Devices = spec.Linux.Resources.Devices
