mirror of
https://github.com/containers/podman.git
synced 2025-08-02 09:12:36 +08:00
![dependabot-preview[bot]](/assets/img/avatar_default.png)
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.17.0 to 0.18.0. - [Release notes](https://github.com/containers/common/releases) - [Commits](https://github.com/containers/common/compare/v0.17.0...v0.18.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
21 lines
388 B
Go
21 lines
388 B
Go
// +build systemd
|
|
|
|
package config
|
|
|
|
import (
|
|
"github.com/containers/common/pkg/cgroupv2"
|
|
"github.com/containers/storage/pkg/unshare"
|
|
)
|
|
|
|
func defaultCgroupManager() string {
|
|
enabled, err := cgroupv2.Enabled()
|
|
if err == nil && !enabled && unshare.IsRootless() {
|
|
return CgroupfsCgroupsManager
|
|
}
|
|
|
|
return SystemdCgroupsManager
|
|
}
|
|
func defaultEventsLogger() string {
|
|
return "journald"
|
|
}
|