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:
commit
0abd16527e
|
@ -42,7 +42,7 @@ func (s *StepMountDevice) Run(_ context.Context, state multistep.StateBag) multi
|
||||||
wrappedCommand := state.Get("wrappedCommand").(CommandWrapper)
|
wrappedCommand := state.Get("wrappedCommand").(CommandWrapper)
|
||||||
|
|
||||||
var virtualizationType string
|
var virtualizationType string
|
||||||
if config.FromScratch {
|
if config.FromScratch || config.AMIVirtType != "" {
|
||||||
virtualizationType = config.AMIVirtType
|
virtualizationType = config.AMIVirtType
|
||||||
} else {
|
} else {
|
||||||
image := state.Get("source_image").(*ec2.Image)
|
image := state.Get("source_image").(*ec2.Image)
|
||||||
|
|
Loading…
Reference in New Issue