mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00

Podman v5 will not support cgroups-v1. This commit will print a warning if it detects a cgroups-v1 system. The warning can be hidden by setting envvar `PODMAN_CGROUPSV1_WARNING`. This warning is patched out for RHEL 9 builds as cgroups-v1 will still be supported on RHEL 9 systems. Resolves: https://issues.redhat.com/browse/RUN-1957 [NO NEW TESTS NEEDED] Co-authored-by: Ed Santiago <santiago@redhat.com> Co-authored-by: Sascha Grunert <sgrunert@redhat.com> Co-authored-by: Giuseppe Scrivano <gscrivan@redhat.com> Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>