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

Amazon-chroot: Fix building PV images and where mount_partition is set
pull/7371/head
Megan Marsh 7 years ago committed by GitHub
commit 0abd16527e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save