summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-10 14:58:41 -0700
committerGitHub <noreply@github.com>2019-10-10 14:58:41 -0700
commitfd389d28ce2223550c82d809cbafa12a54e733e6 (patch)
treeaf13237275b82f7635ee06e2d079c7630926cdd5 /pkg
parentcec8edd6f5067ea8336fe9d386b78ed1e7161fd6 (diff)
parent5963077e93937046b6b13d6f1da8c1f932c0e6ff (diff)
downloadpodman-fd389d28ce2223550c82d809cbafa12a54e733e6.tar.gz
podman-fd389d28ce2223550c82d809cbafa12a54e733e6.tar.bz2
podman-fd389d28ce2223550c82d809cbafa12a54e733e6.zip
Merge pull request #4206 from giuseppe/systemd-mode-look-full-path
systemd: expect full path /usr/sbin/init
Diffstat (limited to 'pkg')
-rw-r--r--pkg/spec/createconfig.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/spec/createconfig.go b/pkg/spec/createconfig.go
index a65263b7d..3685450f0 100644
--- a/pkg/spec/createconfig.go
+++ b/pkg/spec/createconfig.go
@@ -195,8 +195,7 @@ func (c *CreateConfig) getContainerCreateOptions(runtime *libpod.Runtime, pod *l
if c.Interactive {
options = append(options, libpod.WithStdin())
}
- if c.Systemd && (strings.HasSuffix(c.Command[0], "init") ||
- strings.HasSuffix(c.Command[0], "systemd")) {
+ if c.Systemd {
options = append(options, libpod.WithSystemd())
}
if c.Name != "" {