builder/virtualbox: more comprehensive message suppression

This commit is contained in:
Mitchell Hashimoto 2013-06-11 15:52:46 -07:00
parent e14b00c818
commit 4c18b0ae5b
2 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,7 @@ func (b *Builder) newDriver() (Driver, error) {
return nil, err
}
log.Printf("VBoxManage path: %s", vboxmanagePath)
driver := &VBox42Driver{vboxmanagePath}
if err := driver.Verify(); err != nil {
return nil, err

View File

@ -1,8 +1,10 @@
package virtualbox
import (
"fmt"
"log"
"os/exec"
"time"
)
// A driver is able to talk to VirtualBox and perform certain
@ -27,6 +29,8 @@ func (d *VBox42Driver) SuppressMessages() error {
extraData := map[string]string{
"GUI/RegistrationData": "triesLeft=0",
"GUI/SuppressMessages": "confirmInputCapture,remindAboutAutoCapture,remindAboutMouseIntegrationOff,remindAboutMouseIntegrationOn,remindAboutWrongColorDepth",
"GUI/UpdateDate": fmt.Sprintf("1 d, %d-01-01, stable", time.Now().Year()+1),
"GUI/UpdateCheckCount": "60",
}
for k, v := range extraData {