mirror of
https://github.com/containers/podman.git
synced 2025-10-16 18:53:19 +08:00
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:
8
pkg/specgen/generate/validate_freebsd.go
Normal file
8
pkg/specgen/generate/validate_freebsd.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user