diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-11-16 16:08:40 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-12-06 15:03:07 -0500 |
commit | 76fd7dbd159491e920689104310c4a104744c42c (patch) | |
tree | ff389a704099c9cffaefbe2c3e73905c95e4e7ac /pkg | |
parent | 0282f98b3cabad5ff873dc7c391151854f1501b7 (diff) | |
download | podman-76fd7dbd159491e920689104310c4a104744c42c.tar.gz podman-76fd7dbd159491e920689104310c4a104744c42c.tar.bz2 podman-76fd7dbd159491e920689104310c4a104744c42c.zip |
podman machine start wait for ssh
Wait for sshd to be ready before we return from start. This should make
podman machine ssh immediately available without any race conditions.
Fixes #11532
[NO NEW TESTS NEEDED] I could not reproduce the issue so I am not sure
if this fixes it.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/machine/ignition.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/machine/ignition.go b/pkg/machine/ignition.go index ef6c741cd..5c465d37d 100644 --- a/pkg/machine/ignition.go +++ b/pkg/machine/ignition.go @@ -81,7 +81,7 @@ func NewIgnitionFile(ign DynamicIgnition) error { // so a listening host knows it can being interacting with it ready := `[Unit] Requires=dev-virtio\\x2dports-%s.device -After=remove-moby.service +After=remove-moby.service sshd.socket sshd.service OnFailure=emergency.target OnFailureJobMode=isolate [Service] |