native: support for FreeBSD

Signed-off-by: Samuel Karp <me@samuelkarp.com>
This commit is contained in:
Samuel Karp
2020-12-16 00:14:30 -08:00
parent d6baafa75f
commit b624486c84
3 changed files with 49 additions and 6 deletions

View File

@@ -327,12 +327,9 @@ func (o *snapshotter) mounts(s storage.Snapshot) []mount.Mount {
return []mount.Mount{
{
Source: source,
Type: "bind",
Options: []string{
roFlag,
"rbind",
},
Source: source,
Type: mountType,
Options: append(defaultMountOptions, roFlag),
},
}
}