mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-27 02:04:01 -04:00
Merge pull request #4810 from bryonr/fix_vmware_shutdown_cleanup_osx
Help ensure VMX builder properly removes mounted CDs on OS X
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
"github.com/mitchellh/multistep"
|
||||
"log"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
@@ -125,10 +124,10 @@ LockWaitLoop:
|
||||
}
|
||||
}
|
||||
|
||||
if runtime.GOOS != "darwin" && !s.Testing {
|
||||
if !s.Testing {
|
||||
// Windows takes a while to yield control of the files when the
|
||||
// process is exiting. Ubuntu will yield control of the files but
|
||||
// VMWare may overwrite the VMX cleanup steps that run after this,
|
||||
// process is exiting. Ubuntu and OS X will yield control of the files
|
||||
// but VMWare may overwrite the VMX cleanup steps that run after this,
|
||||
// so we wait to ensure VMWare has exited and flushed the VMX.
|
||||
|
||||
// We just sleep here. In the future, it'd be nice to find a better
|
||||
|
||||
Reference in New Issue
Block a user