Do not set tmpcopyup on /dev

Fixes #3229

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
Matthew Heon 2019-05-30 14:02:14 -04:00
parent bc7afd6d71
commit c520e34ea7
1 changed files with 1 additions and 1 deletions

View File

@ -797,7 +797,7 @@ func initFSMounts(inputMounts []spec.Mount) []spec.Mount {
if m.Type == TypeBind {
m.Options = util.ProcessOptions(m.Options)
}
if m.Type == TypeTmpfs {
if m.Type == TypeTmpfs && filepath.Clean(m.Destination) != "/dev" {
m.Options = append(m.Options, "tmpcopyup")
}
mounts = append(mounts, m)