Skip to content

Commit 6c0854f

Browse files
committed
Wait for IP before setting up mounts
If we don't wait for the IP before setting up mounts, theres a chance that the host isn't ready before we try to set up the 9p mount
1 parent 9b8a6c3 commit 6c0854f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

xhyve/xhyve.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,11 @@ func (d *Driver) Start() error {
482482
}
483483
}()
484484

485-
d.setupMounts()
485+
if err := d.waitForIP(); err != nil {
486+
return err
487+
}
486488

487-
return d.waitForIP()
489+
return d.setupMounts()
488490
}
489491

490492
func (d *Driver) Stop() error {

0 commit comments

Comments
 (0)