mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Fixes missing binary in systemd.
This is broken on e.g. NixOS as systemd only searches a small set of directories for command binary, which does not include `/bin` [1]. [1]: https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#Command%20lines Signed-off-by: SEIAROTg <seiarotg@gmail.com>
This commit is contained in:

committed by
openshift-cherrypick-robot

parent
36ad25ad7c
commit
cd1b2981b4
@ -8,5 +8,5 @@ Type=oneshot
|
|||||||
# Set a timeout as by default oneshot does not have one and in case network-online.target
|
# Set a timeout as by default oneshot does not have one and in case network-online.target
|
||||||
# never comes online we do not want to block forever, 90s is the default systemd unit timeout.
|
# never comes online we do not want to block forever, 90s is the default systemd unit timeout.
|
||||||
TimeoutStartSec=90s
|
TimeoutStartSec=90s
|
||||||
ExecStart=sh -c 'until systemctl is-active network-online.target; do sleep 0.5; done'
|
ExecStart=/bin/sh -c 'until systemctl is-active network-online.target; do sleep 0.5; done'
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
Reference in New Issue
Block a user