summaryrefslogtreecommitdiff
path: root/pkg/machine/ignition.go
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-11-16 16:08:40 +0100
committerPaul Holzinger <pholzing@redhat.com>2021-11-16 16:08:40 +0100
commit8ca300ae94768aae2c3d1d78137ee96423d48e7f (patch)
tree532e3a151d0731b0ca873f2e57359e64f3324b97 /pkg/machine/ignition.go
parent8430ffc72e74f1271174984674a1c2ee6118779e (diff)
downloadpodman-8ca300ae94768aae2c3d1d78137ee96423d48e7f.tar.gz
podman-8ca300ae94768aae2c3d1d78137ee96423d48e7f.tar.bz2
podman-8ca300ae94768aae2c3d1d78137ee96423d48e7f.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/machine/ignition.go')
-rw-r--r--pkg/machine/ignition.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/machine/ignition.go b/pkg/machine/ignition.go
index 42d729458..e19940b22 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]