From 77d0ba492df3549ee8a3d0c964e6d75b0a9f06f1 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Thu, 26 Apr 2018 14:09:17 +0200 Subject: [PATCH] parallels-pvm: Add missing compaction of disks --- builder/parallels/pvm/builder.go | 3 +++ builder/parallels/pvm/config.go | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/builder/parallels/pvm/builder.go b/builder/parallels/pvm/builder.go index d21388eff..e36916092 100644 --- a/builder/parallels/pvm/builder.go +++ b/builder/parallels/pvm/builder.go @@ -105,6 +105,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe Commands: b.config.PrlctlPost, Ctx: b.config.ctx, }, + ¶llelscommon.StepCompactDisk{ + Skip: b.config.SkipCompaction, + }, } // Run the steps. diff --git a/builder/parallels/pvm/config.go b/builder/parallels/pvm/config.go index edccea50e..bcca5e724 100644 --- a/builder/parallels/pvm/config.go +++ b/builder/parallels/pvm/config.go @@ -25,9 +25,10 @@ type Config struct { bootcommand.BootConfig `mapstructure:",squash"` parallelscommon.ToolsConfig `mapstructure:",squash"` - SourcePath string `mapstructure:"source_path"` - VMName string `mapstructure:"vm_name"` - ReassignMAC bool `mapstructure:"reassign_mac"` + SourcePath string `mapstructure:"source_path"` + SkipCompaction bool `mapstructure:"skip_compaction"` + VMName string `mapstructure:"vm_name"` + ReassignMAC bool `mapstructure:"reassign_mac"` ctx interpolate.Context }