mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-12 06:11:03 -04:00
24 lines
506 B
Go
24 lines
506 B
Go
![]() |
// +build freebsd
|
||
|
|
||
|
package container
|
||
|
|
||
|
import (
|
||
|
"golang.org/x/sys/unix"
|
||
|
)
|
||
|
|
||
|
func detachMounted(path string) error {
|
||
|
// FreeBSD do not support the lazy unmount or MNT_DETACH feature.
|
||
|
// Therefore there are separate definitions for this.
|
||
|
return unix.Unmount(path, 0)
|
||
|
}
|
||
|
|
||
|
// SecretMounts returns the mounts for the secret path
|
||
|
func (container *Container) SecretMounts() []Mount {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// UnmountSecrets unmounts the fs for secrets
|
||
|
func (container *Container) UnmountSecrets() error {
|
||
|
return nil
|
||
|
}
|