diff options
Diffstat (limited to 'vendor/github.com/projectatomic/buildah/bind/mount_unsupported.go')
-rw-r--r-- | vendor/github.com/projectatomic/buildah/bind/mount_unsupported.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/github.com/projectatomic/buildah/bind/mount_unsupported.go b/vendor/github.com/projectatomic/buildah/bind/mount_unsupported.go new file mode 100644 index 000000000..a8786955d --- /dev/null +++ b/vendor/github.com/projectatomic/buildah/bind/mount_unsupported.go @@ -0,0 +1,25 @@ +// +build !linux + +package bind + +import ( + "fmt" + "os" + "path/filepath" + "sort" + "strings" + "syscall" + + "github.com/containers/storage/pkg/idtools" + "github.com/containers/storage/pkg/mount" + "github.com/opencontainers/runtime-spec/specs-go" + "github.com/pkg/errors" + "github.com/sirupsen/logrus" + "golang.org/x/sys/unix" +) + +// SetupIntermediateMountNamespace returns a no-op unmountAll() and no error. +func SetupIntermediateMountNamespace(spec *specs.Spec, bundlePath string) (unmountAll func() error, err error) { + stripNoBuildahBindOption(spec) + return func() error { return nil }, nil +} |