diff options
author | Matthew Heon <matthew.heon@pm.me> | 2019-05-30 14:02:14 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-05-30 14:02:14 -0400 |
commit | c520e34ea7e738af6a39f00e6e24321546557730 (patch) | |
tree | 8bb9b7df39853b1dec23c4af4311de494bcad5b5 /pkg/spec | |
parent | bc7afd6d71da4173e4894ff352667a25987fa2ea (diff) | |
download | podman-c520e34ea7e738af6a39f00e6e24321546557730.tar.gz podman-c520e34ea7e738af6a39f00e6e24321546557730.tar.bz2 podman-c520e34ea7e738af6a39f00e6e24321546557730.zip |
Do not set tmpcopyup on /dev
Fixes #3229
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'pkg/spec')
-rw-r--r-- | pkg/spec/storage.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/spec/storage.go b/pkg/spec/storage.go index dcc149b55..e221b5cb5 100644 --- a/pkg/spec/storage.go +++ b/pkg/spec/storage.go @@ -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) |