summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-09-14 11:16:58 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2018-09-29 06:00:47 +0200
commit87c255f29fcf4eb2fd21b21a1abe9d9fdcc7dbca (patch)
treefdecd0deeb9b417085b592e233f23d0176e4a71b /pkg
parent7b152a24be224ee454b3f698cc1c1ed71330a476 (diff)
downloadpodman-87c255f29fcf4eb2fd21b21a1abe9d9fdcc7dbca.tar.gz
podman-87c255f29fcf4eb2fd21b21a1abe9d9fdcc7dbca.tar.bz2
podman-87c255f29fcf4eb2fd21b21a1abe9d9fdcc7dbca.zip
Don't tmpcopyup on systemd cgroup
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/spec/spec.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go
index ad14ea65d..fb072dbd5 100644
--- a/pkg/spec/spec.go
+++ b/pkg/spec/spec.go
@@ -403,7 +403,7 @@ func setupSystemd(config *CreateConfig, g *generate.Generator) error {
return err
}
options := []string{"rw", "rprivate", "noexec", "nosuid", "nodev"}
- for _, dest := range []string{"/run", "/run/lock", "/sys/fs/cgroup/systemd"} {
+ for _, dest := range []string{"/run", "/run/lock"} {
if libpod.MountExists(mounts, dest) {
continue
}
@@ -427,6 +427,13 @@ func setupSystemd(config *CreateConfig, g *generate.Generator) error {
}
g.AddMount(tmpfsMnt)
}
+ tmpfsMnt := spec.Mount{
+ Destination: "/sys/fs/cgroup/systemd",
+ Type: "tmpfs",
+ Source: "tmpfs",
+ Options: append(options, "size=65536k"),
+ }
+ g.AddMount(tmpfsMnt)
return nil
}