Commit cfb9b4d6 authored by mheidenr's avatar mheidenr

enable qemu builder to handle reboots in the shell provisioner

parent 1a57e389
...@@ -392,23 +392,13 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe ...@@ -392,23 +392,13 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
new(stepForwardSSH), new(stepForwardSSH),
new(stepConfigureVNC), new(stepConfigureVNC),
&stepRun{ &stepRun{
BootDrive: "d", BootDrive: "once=d",
Message: "Starting VM, booting from CD-ROM", Message: "Starting VM, booting from CD-ROM",
}, },
} &stepBootWait{},
&stepTypeBootCommand{},
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",
},
)
} }
steps = append(steps, steps = append(steps,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment