Don't tmpcopyup on systemd cgroup

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2018-09-14 11:16:58 -04:00
parent 7b152a24be
commit 87c255f29f
No known key found for this signature in database
GPG Key ID: A2DF901DABE2C028
1 changed files with 8 additions and 1 deletions

View File

@ -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
}