From c520e34ea7e738af6a39f00e6e24321546557730 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 30 May 2019 14:02:14 -0400 Subject: Do not set tmpcopyup on /dev Fixes #3229 Signed-off-by: Matthew Heon --- pkg/spec/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') 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) -- cgit v1.2.3-54-g00ecf