Skip to content

Commit

Permalink
libpod: Add support for 'podman pod' on FreeBSD
Browse files Browse the repository at this point in the history
[NO NEW TESTS NEEDED]

Signed-off-by: Doug Rabson <[email protected]>
  • Loading branch information
dfr committed Oct 7, 2022
1 parent 7f8964a commit b4b7011
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libpod/runtime_pod_common.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux
// +build linux
//go:build linux || freebsd
// +build linux freebsd

package libpod

Expand Down
9 changes: 9 additions & 0 deletions libpod/runtime_pod_freebsd.go
Original file line number Diff line number Diff line change
@@ -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
}
4 changes: 2 additions & 2 deletions libpod/runtime_pod_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !linux
// +build !linux
//go:build !linux && !freebsd
// +build !linux,!freebsd

package libpod

Expand Down
5 changes: 5 additions & 0 deletions libpod/util_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4b7011

Please sign in to comment.