summaryrefslogtreecommitdiff
path: root/pkg/spec
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-05-31 04:15:31 +0200
committerGitHub <noreply@github.com>2019-05-31 04:15:31 +0200
commit88b7a221a2303f1b1b6664a07b3aafd7d037307b (patch)
treef57d8ad6d2b5b6506ff947d39053be49088a1211 /pkg/spec
parentb5b461ac28629c95795f0dee3fc6c804f2a47186 (diff)
parentc520e34ea7e738af6a39f00e6e24321546557730 (diff)
downloadpodman-88b7a221a2303f1b1b6664a07b3aafd7d037307b.tar.gz
podman-88b7a221a2303f1b1b6664a07b3aafd7d037307b.tar.bz2
podman-88b7a221a2303f1b1b6664a07b3aafd7d037307b.zip
Merge pull request #3238 from mheon/no_tmpcopyup_dev
Do not set tmpcopyup on /dev
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)