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
c1bd7468
Commit
c1bd7468
authored
Nov 12, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/virtualbox: ctrl-c works during wait for boot
parent
3042d330
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
CHANGELOG.md
CHANGELOG.md
+1
-0
builder/virtualbox/step_run.go
builder/virtualbox/step_run.go
+12
-1
No files found.
CHANGELOG.md
View file @
c1bd7468
...
...
@@ -20,6 +20,7 @@ BUG FIXES:
*
builder/amazon/chroot: Copying empty directories works. [GH-588]
*
builder/amazon/chroot: Chroot commands work with shell provisioners. [GH-581]
*
builder/virtualbox: Ctrl-C interrupts during waiting for boot. [GH-618]
*
builder/vmware: VMX modifications are now case-insensitive. [GH-608]
*
builder/vmware: VMware Fusion won't ask for VM upgrade.
*
provisioner/chef-solo: Output is slightly prettier and more informative.
...
...
builder/virtualbox/step_run.go
View file @
c1bd7468
...
...
@@ -42,7 +42,18 @@ func (s *stepRun) Run(state multistep.StateBag) multistep.StepAction {
if
int64
(
config
.
bootWait
)
>
0
{
ui
.
Say
(
fmt
.
Sprintf
(
"Waiting %s for boot..."
,
config
.
bootWait
))
time
.
Sleep
(
config
.
bootWait
)
wait
:=
time
.
After
(
config
.
bootWait
)
WAITLOOP
:
for
{
select
{
case
<-
wait
:
break
WAITLOOP
case
<-
time
.
After
(
1
*
time
.
Second
)
:
if
_
,
ok
:=
state
.
GetOk
(
multistep
.
StateCancelled
);
ok
{
return
multistep
.
ActionHalt
}
}
}
}
return
multistep
.
ActionContinue
...
...
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