Skip to content

Commit

Permalink
Updating to Install GVNIC DQ on 2016/2025, for 2019/2022 install GQ. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bkatyl authored Nov 8, 2024
1 parent bb1e951 commit e4ad03e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daisy_workflows/image_build/windows/post_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ function Configure-RDP {
function Install-DriverPackages {
Write-Host 'Installing GCE Driver Packages...'
# Install each individually in order to catch individual errors
# Install GVNIC DQ on 2016, for all other versions install GQ
if ([System.Environment]::OSVersion.Version.Major -ge 10 -and [System.Environment]::OSVersion.Version.Build -ne 14393) {
# if 2019/2022 install GQ else Install GVNIC DQ (2016/2025)
if (([System.Environment]::OSVersion.Version.Major -ge 10 -and [System.Environment]::OSVersion.Version.Build -gt 14393) -and ([System.Environment]::OSVersion.Version.Major -ge 10 -and [System.Environment]::OSVersion.Version.Build -lt 26100)) {
Run-Command 'C:\ProgramData\GooGet\googet.exe' -root 'C:\ProgramData\GooGet' -noconfirm install -sources https://packages.cloud.google.com/yuck/repos/google-compute-engine-driver-gvnic-gq-stable google-compute-engine-driver-gvnic
}
else {
Expand Down

0 comments on commit e4ad03e

Please sign in to comment.