Skip to content

Commit

Permalink
Do not set tmpcopyup on /dev
Browse files Browse the repository at this point in the history
Fixes containers#3229

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
  • Loading branch information
mheon committed May 30, 2019
1 parent bc7afd6 commit c520e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/spec/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c520e34

Please sign in to comment.