Skip to content

Commit f679555

Browse files
committed
setupMounts throws an error if run on a stopped VM
The 9p mount already exists in this case. This is reverting back to behavior before https://github.com/zchee/docker-machine-driver-xhyve/pull/161/files This now logs a warning, but this is a not fatal error on a recreate. I'm not sure there's a cleaner way since Start() has no context of if it is called on new VM or a recently stopped VM.
1 parent 7fbde22 commit f679555

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

xhyve/xhyve.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,11 @@ func (d *Driver) Start() error {
499499
return err
500500
}
501501

502-
return d.setupMounts()
502+
if err := d.setupMounts(); err != nil {
503+
log.Warnf("Error setting up mounts: %v", err)
504+
}
505+
506+
return nil
503507
}
504508

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

0 commit comments

Comments
 (0)