From 4c18b0ae5b9a13f621a4952ea7349dd240d74c00 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 11 Jun 2013 15:52:46 -0700 Subject: [PATCH] builder/virtualbox: more comprehensive message suppression --- builder/virtualbox/builder.go | 1 + builder/virtualbox/driver.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/builder/virtualbox/builder.go b/builder/virtualbox/builder.go index e50f2954f..09ed1a8fb 100644 --- a/builder/virtualbox/builder.go +++ b/builder/virtualbox/builder.go @@ -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 diff --git a/builder/virtualbox/driver.go b/builder/virtualbox/driver.go index d01a22b32..70a893d66 100644 --- a/builder/virtualbox/driver.go +++ b/builder/virtualbox/driver.go @@ -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 {