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
675f7a43
Commit
675f7a43
authored
Dec 18, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/virtualbox: don't download guest additions if disable [GH-731]
parent
da168870
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
builder/virtualbox/step_download_guest_additions.go
builder/virtualbox/step_download_guest_additions.go
+6
-0
No files found.
CHANGELOG.md
View file @
675f7a43
...
...
@@ -40,6 +40,7 @@ BUG FIXES:
*
core: No colored output in machine-readable output. [GH-684]
*
core: User variables can now be used for non-string fields. [GH-598]
*
builder/virtualbox: don't download guest additions if disabled. [GH-731]
*
post-processor/vsphere: Uploads VM properly. [GH-694]
*
post-processor/vsphere: Process user variables.
*
provisioner/ansible-local: playbook paths are properly validated
...
...
builder/virtualbox/step_download_guest_additions.go
View file @
675f7a43
...
...
@@ -35,6 +35,12 @@ func (s *stepDownloadGuestAdditions) Run(state multistep.StateBag) multistep.Ste
ui
:=
state
.
Get
(
"ui"
)
.
(
packer
.
Ui
)
config
:=
state
.
Get
(
"config"
)
.
(
*
config
)
// If we've disabled guest additions, don't download
if
config
.
GuestAdditionsMode
==
GuestAdditionsModeDisable
{
log
.
Println
(
"Not downloading guest additions since it is disabled."
)
return
multistep
.
ActionContinue
}
// Get VBox version
version
,
err
:=
driver
.
Version
()
if
err
!=
nil
{
...
...
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