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
1f57d722
Commit
1f57d722
authored
Jun 24, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/virtualbox: remap versions that don't have guest additions
parent
76c2fcee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
builder/virtualbox/step_download_guest_additions.go
builder/virtualbox/step_download_guest_additions.go
+10
-0
No files found.
builder/virtualbox/step_download_guest_additions.go
View file @
1f57d722
...
...
@@ -16,6 +16,11 @@ import (
"time"
)
var
additionsVersionMap
=
map
[
string
]
string
{
"4.2.1"
:
"4.2.0"
,
"4.1.23"
:
"4.1.22"
,
}
// This step uploads a file containing the VirtualBox version, which
// can be useful for various provisioning reasons.
//
...
...
@@ -35,6 +40,11 @@ func (s *stepDownloadGuestAdditions) Run(state map[string]interface{}) multistep
return
multistep
.
ActionHalt
}
if
newVersion
,
ok
:=
additionsVersionMap
[
version
];
ok
{
log
.
Printf
(
"Rewriting guest additions version: %s to %s"
,
version
,
newVersion
)
version
=
newVersion
}
// First things first, we get the list of checksums for the files available
// for this version.
checksumsUrl
:=
fmt
.
Sprintf
(
"http://download.virtualbox.org/virtualbox/%s/SHA256SUMS"
,
version
)
...
...
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