diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-10-16 13:26:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-16 13:26:20 -0400 |
commit | a2266c63b4368eebfe3a1b9ea469c65e7cceb69a (patch) | |
tree | cd26d33445fb2850e78c89869002efb1abfd2bff /libpod/container_easyjson.go | |
parent | 81e63ac309e8bde6603faf07a98a7963e9397188 (diff) | |
parent | 57a8c2e5e844ee403c9a703c621780de7c7343f0 (diff) | |
download | podman-a2266c63b4368eebfe3a1b9ea469c65e7cceb69a.tar.gz podman-a2266c63b4368eebfe3a1b9ea469c65e7cceb69a.tar.bz2 podman-a2266c63b4368eebfe3a1b9ea469c65e7cceb69a.zip |
Merge pull request #1650 from rhatdan/systemd
Mount proper cgroup for systemd to manage inside of the container.
Diffstat (limited to 'libpod/container_easyjson.go')
-rw-r--r-- | libpod/container_easyjson.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libpod/container_easyjson.go b/libpod/container_easyjson.go index f78366065..53ad5b7ee 100644 --- a/libpod/container_easyjson.go +++ b/libpod/container_easyjson.go @@ -1682,6 +1682,8 @@ func easyjson1dbef17bDecodeGithubComContainersLibpodLibpod2(in *jlexer.Lexer, ou } case "pause": out.IsInfra = bool(in.Bool()) + case "systemd": + out.Systemd = bool(in.Bool()) default: in.SkipRecursive() } @@ -2344,6 +2346,16 @@ func easyjson1dbef17bEncodeGithubComContainersLibpodLibpod2(out *jwriter.Writer, } out.Bool(bool(in.IsInfra)) } + { + const prefix string = ",\"systemd\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Bool(bool(in.Systemd)) + } out.RawByte('}') } |