aboutsummaryrefslogtreecommitdiff
path: root/pkg/spec
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-05-30 14:02:14 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-05-30 14:02:14 -0400
commitc520e34ea7e738af6a39f00e6e24321546557730 (patch)
tree8bb9b7df39853b1dec23c4af4311de494bcad5b5 /pkg/spec
parentbc7afd6d71da4173e4894ff352667a25987fa2ea (diff)
downloadpodman-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.go2
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)