Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
4c18b0ae
Commit
4c18b0ae
authored
Jun 11, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/virtualbox: more comprehensive message suppression
parent
e14b00c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
builder/virtualbox/builder.go
builder/virtualbox/builder.go
+1
-0
builder/virtualbox/driver.go
builder/virtualbox/driver.go
+4
-0
No files found.
builder/virtualbox/builder.go
View file @
4c18b0ae
...
@@ -79,6 +79,7 @@ func (b *Builder) newDriver() (Driver, error) {
...
@@ -79,6 +79,7 @@ func (b *Builder) newDriver() (Driver, error) {
return
nil
,
err
return
nil
,
err
}
}
log
.
Printf
(
"VBoxManage path: %s"
,
vboxmanagePath
)
driver
:=
&
VBox42Driver
{
vboxmanagePath
}
driver
:=
&
VBox42Driver
{
vboxmanagePath
}
if
err
:=
driver
.
Verify
();
err
!=
nil
{
if
err
:=
driver
.
Verify
();
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
...
builder/virtualbox/driver.go
View file @
4c18b0ae
package
virtualbox
package
virtualbox
import
(
import
(
"fmt"
"log"
"log"
"os/exec"
"os/exec"
"time"
)
)
// A driver is able to talk to VirtualBox and perform certain
// A driver is able to talk to VirtualBox and perform certain
...
@@ -27,6 +29,8 @@ func (d *VBox42Driver) SuppressMessages() error {
...
@@ -27,6 +29,8 @@ func (d *VBox42Driver) SuppressMessages() error {
extraData
:=
map
[
string
]
string
{
extraData
:=
map
[
string
]
string
{
"GUI/RegistrationData"
:
"triesLeft=0"
,
"GUI/RegistrationData"
:
"triesLeft=0"
,
"GUI/SuppressMessages"
:
"confirmInputCapture,remindAboutAutoCapture,remindAboutMouseIntegrationOff,remindAboutMouseIntegrationOn,remindAboutWrongColorDepth"
,
"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
{
for
k
,
v
:=
range
extraData
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment