summaryrefslogtreecommitdiff
path: root/libpod/container_inspect.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2020-07-14 13:21:05 -0400
committerMatthew Heon <matthew.heon@pm.me>2020-07-22 14:31:26 -0400
commit24f0175d90b78504e49882b11d72b96a79e58a3b (patch)
treea0bc8cece7553979735c401e2b716a4b8d351282 /libpod/container_inspect.go
parentdb81bc2c83da22b8d8db5201873b12eceb89e6d7 (diff)
downloadpodman-24f0175d90b78504e49882b11d72b96a79e58a3b.tar.gz
podman-24f0175d90b78504e49882b11d72b96a79e58a3b.tar.bz2
podman-24f0175d90b78504e49882b11d72b96a79e58a3b.zip
Add SystemdMode to inspect for containers
This allows us to determine if the container auto-detected that systemd was in use, and correctly activated systemd integration. Use this to wire up some integration tests to verify that systemd integration is working properly. Signed-off-by: Matthew Heon <matthew.heon@pm.me> <MH: Fixed Compile after cherry-pick> Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/container_inspect.go')
-rw-r--r--libpod/container_inspect.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/container_inspect.go b/libpod/container_inspect.go
index 8c392d0d6..cd2e41be2 100644
--- a/libpod/container_inspect.go
+++ b/libpod/container_inspect.go
@@ -289,6 +289,7 @@ func (c *Container) generateInspectContainerConfig(spec *spec.Spec) *define.Insp
ctrConfig.OpenStdin = c.config.Stdin
ctrConfig.Image = c.config.RootfsImageName
+ ctrConfig.SystemdMode = c.config.Systemd
// Leave empty is not explicitly overwritten by user
if len(c.config.Command) != 0 {