Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Commit

Permalink
Wait for SSH to ready instead of unconditionally waiting for 30s
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Dubois <jan.dubois@suse.com>
  • Loading branch information
jandubois committed Apr 23, 2021
1 parent 2e79168 commit ccdf3c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/hyperkit/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,9 @@ func (d *Driver) setupNFSMounts() error {

if len(d.NFSShares) > 0 {
log.Info("Setting up NFS mounts")
// takes some time here for ssh / nfsd to work properly
time.Sleep(time.Second * 30)
if err := drivers.WaitForSSH(d); err != nil {
return err
}
err = d.setupNFSShare()
if err != nil {
// TODO(tstromberg): Check that logging an and error and return it is appropriate. Seems weird.
Expand Down

0 comments on commit ccdf3c6

Please sign in to comment.