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
385a3383
Commit
385a3383
authored
Nov 05, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/qemu: get rid of unnecessary step
parent
e982eb38
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
38 deletions
+0
-38
builder/qemu/builder.go
builder/qemu/builder.go
+0
-1
builder/qemu/driver.go
builder/qemu/driver.go
+0
-8
builder/qemu/step_suppress_messages.go
builder/qemu/step_suppress_messages.go
+0
-29
No files found.
builder/qemu/builder.go
View file @
385a3383
...
...
@@ -387,7 +387,6 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
Files
:
b
.
config
.
FloppyFiles
,
},
new
(
stepCreateDisk
),
new
(
stepSuppressMessages
),
new
(
stepHTTPServer
),
new
(
stepForwardSSH
),
new
(
stepConfigureVNC
),
...
...
builder/qemu/driver.go
View file @
385a3383
...
...
@@ -28,10 +28,6 @@ type Driver interface {
// Stop stops a running machine, forcefully.
Stop
(
string
)
error
// SuppressMessages should do what needs to be done in order to
// suppress any annoying popups, if any.
SuppressMessages
()
error
// Qemu executes the given command via qemu-system-x86_64
Qemu
(
vmName
string
,
qemuArgs
...
string
)
error
...
...
@@ -95,10 +91,6 @@ func (d *QemuDriver) Stop(name string) error {
return
nil
}
func
(
d
*
QemuDriver
)
SuppressMessages
()
error
{
return
nil
}
func
(
d
*
QemuDriver
)
Qemu
(
vmName
string
,
qemuArgs
...
string
)
error
{
var
stdout
,
stderr
bytes
.
Buffer
...
...
builder/qemu/step_suppress_messages.go
deleted
100644 → 0
View file @
e982eb38
package
qemu
import
(
"fmt"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log"
)
// This step sets some variables in Qemu so that annoying
// pop-up messages don't exist.
type
stepSuppressMessages
struct
{}
func
(
stepSuppressMessages
)
Run
(
state
multistep
.
StateBag
)
multistep
.
StepAction
{
driver
:=
state
.
Get
(
"driver"
)
.
(
Driver
)
ui
:=
state
.
Get
(
"ui"
)
.
(
packer
.
Ui
)
log
.
Println
(
"Suppressing messages in Qemu"
)
if
err
:=
driver
.
SuppressMessages
();
err
!=
nil
{
err
:=
fmt
.
Errorf
(
"Error configuring Qemu to suppress messages: %s"
,
err
)
state
.
Put
(
"error"
,
err
)
ui
.
Error
(
err
.
Error
())
return
multistep
.
ActionHalt
}
return
multistep
.
ActionContinue
}
func
(
stepSuppressMessages
)
Cleanup
(
state
multistep
.
StateBag
)
{}
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