summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-10-15 11:14:19 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-10-15 11:14:21 +0200
commit38a6a2000a7bfb98b436d906c3ffb6f8cdcc78d8 (patch)
tree87fe157c78589879bb4d5ee49d372fdef94ac85d /cmd
parenta9190dac36f3f220ddc65ad8295778d40566e61f (diff)
downloadpodman-38a6a2000a7bfb98b436d906c3ffb6f8cdcc78d8.tar.gz
podman-38a6a2000a7bfb98b436d906c3ffb6f8cdcc78d8.tar.bz2
podman-38a6a2000a7bfb98b436d906c3ffb6f8cdcc78d8.zip
systemd: accept also /sbin/init
it is a regression caused by 3ba3e1c7510d1780b6527a4aa52e40ac2c5b576a. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1761514 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/shared/create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go
index 7c56db8db..bf9410b72 100644
--- a/cmd/podman/shared/create.go
+++ b/cmd/podman/shared/create.go
@@ -668,7 +668,7 @@ func ParseCreateOpts(ctx context.Context, c *GenericCLIResults, runtime *libpod.
if err != nil {
return nil, errors.Wrapf(err, "cannot parse bool %s", c.String("systemd"))
}
- if x && (command[0] == "/usr/sbin/init" || (filepath.Base(command[0]) == "systemd")) {
+ if x && (command[0] == "/usr/sbin/init" || command[0] == "/sbin/init" || (filepath.Base(command[0]) == "systemd")) {
systemd = true
}
}