From 71527325975d2ed43c7851be7bf9c83a0f0e2c9d Mon Sep 17 00:00:00 2001 From: William Brooks Date: Sun, 9 Feb 2020 14:26:46 -0600 Subject: [PATCH] changing SetBootDvdDrive messaging to be truthful --- builder/hyperv/common/step_mount_dvddrive.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/builder/hyperv/common/step_mount_dvddrive.go b/builder/hyperv/common/step_mount_dvddrive.go index 3f54bcbcb..1efb4eeaa 100644 --- a/builder/hyperv/common/step_mount_dvddrive.go +++ b/builder/hyperv/common/step_mount_dvddrive.go @@ -58,7 +58,12 @@ func (s *StepMountDvdDrive) Run(ctx context.Context, state multistep.StateBag) m state.Put("os.dvd.properties", dvdControllerProperties) - ui.Say(fmt.Sprintf("Setting boot drive to os dvd drive %s ...", isoPath)) + if ((s.Generation == 1) && (!s.LegacyGen1BootOrder)) { + ui.Say("Setting boot drive to IDE and then CD drive. Use legacy_gen1_boot_order to override.") + } else { + ui.Say(fmt.Sprintf("Setting boot drive to os dvd drive %s ...", isoPath)) + } + err = driver.SetBootDvdDrive(vmName, controllerNumber, controllerLocation, s.Generation, s.LegacyGen1BootOrder) if err != nil { err := fmt.Errorf(errorMsg, err)