builder/virtualbox: add boot_command

This commit is contained in:
Mitchell Hashimoto 2013-06-11 21:08:45 -07:00
parent 9e4a5a227b
commit e7aa9b409c
4 changed files with 12 additions and 12 deletions

View File

@ -23,6 +23,7 @@ type Builder struct {
}
type config struct {
BootCommand []string `mapstructure:"boot_command"`
BootWait time.Duration ``
GuestOSType string `mapstructure:"guest_os_type"`
ISOMD5 string `mapstructure:"iso_md5"`

View File

@ -169,4 +169,3 @@ func TestBuilderPrepare_SSHHostPort(t *testing.T) {
t.Fatalf("should not have error: %s", err)
}
}

View File

@ -10,7 +10,7 @@ import (
// This step creates the virtual disk that will be used as the
// hard drive for the virtual machine.
type stepCreateDisk struct {}
type stepCreateDisk struct{}
func (s *stepCreateDisk) Run(state map[string]interface{}) multistep.StepAction {
config := state["config"].(*config)

View File

@ -12,7 +12,7 @@ import (
// Uses:
//
// Produces:
type stepRun struct{
type stepRun struct {
vmName string
}