diff options
-rw-r--r-- | .cirrus.yml | 0 | ||||
-rw-r--r-- | pkg/spec/spec.go | 9 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/.cirrus.yml diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go index 1ad55fc8c..4c855d659 100644 --- a/pkg/spec/spec.go +++ b/pkg/spec/spec.go @@ -417,7 +417,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 } @@ -441,6 +441,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 } |