libct/cg/sd/v2: fix Set argument
For some reason, systemd cgroup v2 driver's Set is not using its
container argument when generating systemd unit properties.
This bug is not detected by our update tests as we run a new binary
every time and thus a new instance of a cgroup manager.
@@ -421,7 +421,7 @@ func (m *unifiedManager) GetStats() (*cgroups.Stats, error) {
}
func (m *unifiedManager) Set(container *configs.Config) error {
- properties, err := genV2ResourcesProperties(m.cgroups, m.dbus)
+ properties, err := genV2ResourcesProperties(container.Cgroups, m.dbus)
if err != nil {
return err
}
