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
cfb9b4d6
Commit
cfb9b4d6
authored
Jan 30, 2014
by
mheidenr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable qemu builder to handle reboots in the shell provisioner
parent
1a57e389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
builder/qemu/builder.go
builder/qemu/builder.go
+5
-15
No files found.
builder/qemu/builder.go
View file @
cfb9b4d6
...
...
@@ -392,23 +392,13 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
new
(
stepForwardSSH
),
new
(
stepConfigureVNC
),
&
stepRun
{
BootDrive
:
"d"
,
BootDrive
:
"
once=
d"
,
Message
:
"Starting VM, booting from CD-ROM"
,
},
}
if
!
b
.
config
.
RunOnce
{
steps
=
append
(
steps
,
&
stepBootWait
{},
&
stepTypeBootCommand
{},
&
stepWaitForShutdown
{
Message
:
"Waiting for initial VM boot to shut down"
,
},
&
stepRun
{
BootDrive
:
"c"
,
Message
:
"Starting VM, booting from hard disk"
,
},
)
&
stepBootWait
{},
&
stepTypeBootCommand
{},
}
steps
=
append
(
steps
,
...
...
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