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-14 13:21:05 -0400
commit05988fc74fc25f2ad2256d6e011dfb7ad0b9a4eb (patch)
tree6cdaa0322df2a91a1ccc89dd121e531a3b2d5739 /libpod/container_inspect.go
parentdc2ca45d751ee04253742bfafd5d807ce52c24ec (diff)
downloadpodman-05988fc74fc25f2ad2256d6e011dfb7ad0b9a4eb.tar.gz
podman-05988fc74fc25f2ad2256d6e011dfb7ad0b9a4eb.tar.bz2
podman-05988fc74fc25f2ad2256d6e011dfb7ad0b9a4eb.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>
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 94d5dc93b..b1d86b0a5 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 {