Merge pull request #7337 from sargun/fix-chroot-builder

Amazon-chroot: Fix building PV images and where mount_partition is set
This commit is contained in:
Megan Marsh 2019-03-01 10:25:04 -08:00 committed by GitHub
commit 0abd16527e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)