move the hyperv-only powershell dependency into the hyperv subdirectory (#10198)
This commit is contained in:
parent
8b5e2903b9
commit
d8fec2e9e5
|
@ -8,9 +8,9 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
powershell "github.com/hashicorp/packer/builder/hyperv/common/powershell"
|
||||
"github.com/hashicorp/packer/builder/hyperv/common/powershell/hyperv"
|
||||
"github.com/hashicorp/packer/common"
|
||||
powershell "github.com/hashicorp/packer/common/powershell"
|
||||
"github.com/hashicorp/packer/common/powershell/hyperv"
|
||||
"github.com/hashicorp/packer/template/interpolate"
|
||||
)
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/hashicorp/packer/common/powershell"
|
||||
"github.com/hashicorp/packer/common/powershell/hyperv"
|
||||
"github.com/hashicorp/packer/builder/hyperv/common/powershell"
|
||||
"github.com/hashicorp/packer/builder/hyperv/common/powershell/hyperv"
|
||||
)
|
||||
|
||||
type HypervPS4Driver struct {
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"strings"
|
||||
"text/template"
|
||||
|
||||
"github.com/hashicorp/packer/common/powershell"
|
||||
"github.com/hashicorp/packer/builder/hyperv/common/powershell"
|
||||
)
|
||||
|
||||
type scriptOptions struct {
|
||||
|
@ -194,7 +194,7 @@ func SetFirstBootDeviceGen1(vmName string, controllerType string) error {
|
|||
|
||||
script := `
|
||||
param([string] $vmName, [string] $controllerType)
|
||||
$vmBootOrder = Hyper-V\Get-VMBios -VMName $vmName | Select-Object -ExpandProperty StartupOrder | Where-Object { $_ -ne $controllerType }
|
||||
$vmBootOrder = Hyper-V\Get-VMBios -VMName $vmName | Select-Object -ExpandProperty StartupOrder | Where-Object { $_ -ne $controllerType }
|
||||
Hyper-V\Set-VMBios -VMName $vmName -StartupOrder (@($controllerType) + $vmBootOrder)
|
||||
`
|
||||
|
|
@ -12,9 +12,9 @@ import (
|
|||
|
||||
"github.com/hashicorp/hcl/v2/hcldec"
|
||||
hypervcommon "github.com/hashicorp/packer/builder/hyperv/common"
|
||||
powershell "github.com/hashicorp/packer/builder/hyperv/common/powershell"
|
||||
"github.com/hashicorp/packer/common"
|
||||
"github.com/hashicorp/packer/common/bootcommand"
|
||||
powershell "github.com/hashicorp/packer/common/powershell"
|
||||
"github.com/hashicorp/packer/common/shutdowncommand"
|
||||
"github.com/hashicorp/packer/helper/communicator"
|
||||
"github.com/hashicorp/packer/helper/config"
|
||||
|
|
Loading…
Reference in New Issue