diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-07-16 14:58:08 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-07-16 14:58:08 +0200 |
commit | 6f1c7a0b6b5a5cb4eb830758653f307fece8b08d (patch) | |
tree | bfa324561ee2b55c9dd5328215e4d615639dcc77 /pkg/systemd/generate/common.go | |
parent | ce28dc3c4c3dba468ddb6f2a249c0c4bfc058805 (diff) | |
download | podman-6f1c7a0b6b5a5cb4eb830758653f307fece8b08d.tar.gz podman-6f1c7a0b6b5a5cb4eb830758653f307fece8b08d.tar.bz2 podman-6f1c7a0b6b5a5cb4eb830758653f307fece8b08d.zip |
systemd: require network*-online*.target
Require the network to be online in all (generated) systemd units to
make sure that containers and Podman run only after the network has been
fully configured.
Fixes: #10655
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/systemd/generate/common.go')
-rw-r--r-- | pkg/systemd/generate/common.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/systemd/generate/common.go b/pkg/systemd/generate/common.go index e183125a7..349805980 100644 --- a/pkg/systemd/generate/common.go +++ b/pkg/systemd/generate/common.go @@ -34,7 +34,7 @@ const headerTemplate = `# {{{{.ServiceName}}}}.service [Unit] Description=Podman {{{{.ServiceName}}}}.service Documentation=man:podman-generate-systemd(1) -Wants=network.target +Wants=network-online.target After=network-online.target RequiresMountsFor={{{{.RunRoot}}}} ` |