diff --git a/libpod/runtime_pod_common.go b/libpod/runtime_pod_common.go index b108d00906..9ca85d9a74 100644 --- a/libpod/runtime_pod_common.go +++ b/libpod/runtime_pod_common.go @@ -1,5 +1,5 @@ -//go:build linux -// +build linux +//go:build linux || freebsd +// +build linux freebsd package libpod diff --git a/libpod/runtime_pod_freebsd.go b/libpod/runtime_pod_freebsd.go new file mode 100644 index 0000000000..eb5315fc1a --- /dev/null +++ b/libpod/runtime_pod_freebsd.go @@ -0,0 +1,9 @@ +package libpod + +import ( + "github.com/containers/podman/v4/pkg/specgen" +) + +func (r *Runtime) platformMakePod(pod *Pod, p specgen.PodSpecGenerator) error { + return nil +} diff --git a/libpod/runtime_pod_unsupported.go b/libpod/runtime_pod_unsupported.go index 0c7ff8655a..1e32d3d513 100644 --- a/libpod/runtime_pod_unsupported.go +++ b/libpod/runtime_pod_unsupported.go @@ -1,5 +1,5 @@ -//go:build !linux -// +build !linux +//go:build !linux && !freebsd +// +build !linux,!freebsd package libpod diff --git a/libpod/util_freebsd.go b/libpod/util_freebsd.go index 72019743c0..894fa502b4 100644 --- a/libpod/util_freebsd.go +++ b/libpod/util_freebsd.go @@ -19,6 +19,11 @@ func systemdSliceFromPath(parent, name string, resources *spec.LinuxResources) ( return "", errors.New("not implemented systemdSliceFromPath") } +// deleteSystemdCgroup deletes the systemd cgroup at the given location +func deleteSystemdCgroup(path string, resources *spec.LinuxResources) error { + return nil +} + // No equivalent on FreeBSD? func LabelVolumePath(path string) error { return nil