mirror of
https://github.com/containers/buildah.git
synced 2026-02-05 09:45:38 +01:00
This change is generated by `go1.23rc2 fix ./...`. Had to use go1.23rc2, since all released go versions have a bug preventing it from working with `go 1.22.0` in go.mod (opened https://github.com/golang/go/issues/68825, https://github.com/golang/go/issues/68824 for awareness). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
20 lines
685 B
Go
20 lines
685 B
Go
//go:build !freebsd && !linux
|
|
|
|
package overlay
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
|
)
|
|
|
|
// MountWithOptions creates a subdir of the contentDir based on the source directory
|
|
// from the source system. It then mounts up the source directory on to the
|
|
// generated mount point and returns the mount point to the caller.
|
|
// But allows api to set custom workdir, upperdir and other overlay options
|
|
// Following API is being used by podman at the moment
|
|
func MountWithOptions(contentDir, source, dest string, opts *Options) (mount specs.Mount, err error) {
|
|
return mount, fmt.Errorf("read/write overlay mounts not supported on %q", runtime.GOOS)
|
|
}
|