applied fmt
This commit is contained in:
parent
7152732597
commit
31622b50ac
|
@ -58,7 +58,7 @@ func (s *StepMountDvdDrive) Run(ctx context.Context, state multistep.StateBag) m
|
||||||
|
|
||||||
state.Put("os.dvd.properties", dvdControllerProperties)
|
state.Put("os.dvd.properties", dvdControllerProperties)
|
||||||
|
|
||||||
if ((s.Generation == 1) && (!s.LegacyGen1BootOrder)) {
|
if (s.Generation == 1) && (!s.LegacyGen1BootOrder) {
|
||||||
ui.Say("Setting boot drive to IDE and then CD drive. Use legacy_gen1_boot_order to override.")
|
ui.Say("Setting boot drive to IDE and then CD drive. Use legacy_gen1_boot_order to override.")
|
||||||
} else {
|
} else {
|
||||||
ui.Say(fmt.Sprintf("Setting boot drive to os dvd drive %s ...", isoPath))
|
ui.Say(fmt.Sprintf("Setting boot drive to os dvd drive %s ...", isoPath))
|
||||||
|
|
|
@ -160,7 +160,7 @@ func SetBootDvdDrive(vmName string, controllerNumber uint, controllerLocation ui
|
||||||
|
|
||||||
if generation < 2 {
|
if generation < 2 {
|
||||||
var script string
|
var script string
|
||||||
if (legacyGen1BootOrder) {
|
if legacyGen1BootOrder {
|
||||||
script = `
|
script = `
|
||||||
param([string]$vmName)
|
param([string]$vmName)
|
||||||
Hyper-V\Set-VMBios -VMName $vmName -StartupOrder @("CD","IDE","LegacyNetworkAdapter","Floppy")
|
Hyper-V\Set-VMBios -VMName $vmName -StartupOrder @("CD","IDE","LegacyNetworkAdapter","Floppy")
|
||||||
|
|
Loading…
Reference in New Issue