Commit graph

2 commits

Author SHA1 Message Date
Paul Holzinger
4be46f8661
podman-remote: do not check for cgroupv2
With the remote client on linux we should not check for cgroups and hard
fail if it is not v2. Only the server side matters not the client.

The problem can be reproduced with:
unshare -rm sh -c "mount -t tmpfs none /sys/fs/cgroup  && ./bin/podman --remote ps"

I did not add a regression test as it does not seem to fit well into a
test suite, over mounting cgroups seems like not a good idea.

Fixes: #29241

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-07-21 18:13:11 +02:00
Lokesh Mandvekar
e860773c0d
cmd/podman.persistentRunE(): Fatal linux check if no Cgroups v2
Will log and proceed on non-linux env.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2025-11-12 15:15:32 -05:00