pkg/specgen/generate: NOP verifyContainerResources() on freebsd

There is no point in calling into cgroup specific code as freebsd does
not support cgroups.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2023-12-05 17:37:58 +01:00
parent a687c38860
commit 32c25c6026
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
package generate
import "github.com/containers/podman/v4/pkg/specgen"
// verifyContainerResources does nothing on freebsd as it has no cgroups
func verifyContainerResources(s *specgen.SpecGenerator) ([]string, error) {
return nil, nil
}