Commit 8e75075e authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware/vmx: compact disk

parent f134bcc3
...@@ -82,6 +82,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe ...@@ -82,6 +82,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
}, },
&vmwcommon.StepCleanFiles{}, &vmwcommon.StepCleanFiles{},
&vmwcommon.StepCleanVMX{}, &vmwcommon.StepCleanVMX{},
&vmwcommon.StepCompactDisk{
Skip: b.config.SkipCompaction,
},
} }
// Run the steps. // Run the steps.
......
...@@ -18,8 +18,9 @@ type Config struct { ...@@ -18,8 +18,9 @@ type Config struct {
vmwcommon.SSHConfig `mapstructure:",squash"` vmwcommon.SSHConfig `mapstructure:",squash"`
vmwcommon.VMXConfig `mapstructure:",squash"` vmwcommon.VMXConfig `mapstructure:",squash"`
SourcePath string `mapstructure:"source_path"` SkipCompaction bool `mapstructure:"skip_compaction"`
VMName string `mapstructure:"vm_name"` SourcePath string `mapstructure:"source_path"`
VMName string `mapstructure:"vm_name"`
tpl *packer.ConfigTemplate tpl *packer.ConfigTemplate
} }
......
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