capitalization
This commit is contained in:
parent
b73825bb72
commit
a92491d17b
|
@ -13,7 +13,7 @@ import (
|
||||||
// This step attaches the boot ISO, cd_files iso, and guest additions to the
|
// This step attaches the boot ISO, cd_files iso, and guest additions to the
|
||||||
// virtual machine, if present.
|
// virtual machine, if present.
|
||||||
type StepAttachISOs struct {
|
type StepAttachISOs struct {
|
||||||
AttachBootIso bool
|
AttachBootISO bool
|
||||||
ISOInterface string
|
ISOInterface string
|
||||||
GuestAdditionsMode string
|
GuestAdditionsMode string
|
||||||
GuestAdditionsInterface string
|
GuestAdditionsInterface string
|
||||||
|
@ -28,7 +28,7 @@ func (s *StepAttachISOs) Run(ctx context.Context, state multistep.StateBag) mult
|
||||||
diskMountMap := map[string]string{}
|
diskMountMap := map[string]string{}
|
||||||
s.diskUnmountCommands = map[string][]string{}
|
s.diskUnmountCommands = map[string][]string{}
|
||||||
// Track the bootable iso (only used in virtualbox-iso builder. )
|
// Track the bootable iso (only used in virtualbox-iso builder. )
|
||||||
if s.AttachBootIso {
|
if s.AttachBootISO {
|
||||||
isoPath := state.Get("iso_path").(string)
|
isoPath := state.Get("iso_path").(string)
|
||||||
diskMountMap["boot_iso"] = isoPath
|
diskMountMap["boot_iso"] = isoPath
|
||||||
}
|
}
|
||||||
|
|
|
@ -279,7 +279,7 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack
|
||||||
new(stepCreateVM),
|
new(stepCreateVM),
|
||||||
new(stepCreateDisk),
|
new(stepCreateDisk),
|
||||||
&vboxcommon.StepAttachISOs{
|
&vboxcommon.StepAttachISOs{
|
||||||
AttachBootIso: true,
|
AttachBootISO: true,
|
||||||
ISOInterface: b.config.ISOInterface,
|
ISOInterface: b.config.ISOInterface,
|
||||||
GuestAdditionsMode: b.config.GuestAdditionsMode,
|
GuestAdditionsMode: b.config.GuestAdditionsMode,
|
||||||
GuestAdditionsInterface: b.config.GuestAdditionsInterface,
|
GuestAdditionsInterface: b.config.GuestAdditionsInterface,
|
||||||
|
|
|
@ -96,7 +96,7 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack
|
||||||
KeepRegistered: b.config.KeepRegistered,
|
KeepRegistered: b.config.KeepRegistered,
|
||||||
},
|
},
|
||||||
&vboxcommon.StepAttachISOs{
|
&vboxcommon.StepAttachISOs{
|
||||||
AttachBootIso: false,
|
AttachBootISO: false,
|
||||||
ISOInterface: b.config.GuestAdditionsInterface,
|
ISOInterface: b.config.GuestAdditionsInterface,
|
||||||
GuestAdditionsMode: b.config.GuestAdditionsMode,
|
GuestAdditionsMode: b.config.GuestAdditionsMode,
|
||||||
GuestAdditionsInterface: b.config.GuestAdditionsInterface,
|
GuestAdditionsInterface: b.config.GuestAdditionsInterface,
|
||||||
|
|
|
@ -80,7 +80,7 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack
|
||||||
Name: b.config.VMName,
|
Name: b.config.VMName,
|
||||||
},
|
},
|
||||||
&vboxcommon.StepAttachISOs{
|
&vboxcommon.StepAttachISOs{
|
||||||
AttachBootIso: false,
|
AttachBootISO: false,
|
||||||
ISOInterface: b.config.GuestAdditionsInterface,
|
ISOInterface: b.config.GuestAdditionsInterface,
|
||||||
GuestAdditionsMode: b.config.GuestAdditionsMode,
|
GuestAdditionsMode: b.config.GuestAdditionsMode,
|
||||||
GuestAdditionsInterface: b.config.GuestAdditionsInterface,
|
GuestAdditionsInterface: b.config.GuestAdditionsInterface,
|
||||||
|
|
Loading…
Reference in New Issue