Commit Graph

2 Commits

Author SHA1 Message Date
Matthew Heon 4229e03e6d Ensure that rootless cgroupsv1 will select cgroupfs
The current logic is that, if Podman was built with the systemd
build flag, we will always select systemd cgroups by default.
Then, if we detect no systemd dbus session, we will swap to
cgroupfs. Problem: there are cases where a systemd dbus session
is available, but systemd cgroups don't work - most notably,
rootless mode on cgroups v1 systems. Special-case this so that we
will not try to force systemd mode and break rootless containers.

Fixes https://github.com/containers/podman/issues/6982

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-07-21 16:15:50 -04:00
Daniel J Walsh caf7fd95ca Only default to systemd if built with the systemd buildtag
For packages that don't ship with systemd, this changes the default for those distros.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-03-31 12:57:32 -04:00