diff --git a/builder/amazon/chroot/step_mount_device.go b/builder/amazon/chroot/step_mount_device.go index 38ec62164..a05a0fdea 100644 --- a/builder/amazon/chroot/step_mount_device.go +++ b/builder/amazon/chroot/step_mount_device.go @@ -42,7 +42,7 @@ func (s *StepMountDevice) Run(_ context.Context, state multistep.StateBag) multi wrappedCommand := state.Get("wrappedCommand").(CommandWrapper) var virtualizationType string - if config.FromScratch { + if config.FromScratch || config.AMIVirtType != "" { virtualizationType = config.AMIVirtType } else { image := state.Get("source_image").(*ec2.Image)