mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Merge pull request #19031 from dfr/freebsd-init
pkg/specgen: add support for 'podman run --init' on FreeBSD
This commit is contained in:
@ -6,3 +6,8 @@ const (
|
|||||||
// TypeBind is the type for mounting host dir
|
// TypeBind is the type for mounting host dir
|
||||||
TypeBind = "nullfs"
|
TypeBind = "nullfs"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
// Mount potions for bind
|
||||||
|
BindOptions = []string{}
|
||||||
|
)
|
||||||
|
@ -6,3 +6,8 @@ const (
|
|||||||
// TypeBind is the type for mounting host dir
|
// TypeBind is the type for mounting host dir
|
||||||
TypeBind = "bind"
|
TypeBind = "bind"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
// Mount potions for bind
|
||||||
|
BindOptions = []string{"bind"}
|
||||||
|
)
|
||||||
|
@ -363,7 +363,7 @@ func addContainerInitBinary(s *specgen.SpecGenerator, path string) (spec.Mount,
|
|||||||
Destination: define.ContainerInitPath,
|
Destination: define.ContainerInitPath,
|
||||||
Type: define.TypeBind,
|
Type: define.TypeBind,
|
||||||
Source: path,
|
Source: path,
|
||||||
Options: []string{define.TypeBind, "ro"},
|
Options: append(define.BindOptions, "ro"),
|
||||||
}
|
}
|
||||||
|
|
||||||
if path == "" {
|
if path == "" {
|
||||||
|
Reference in New Issue
Block a user