mirror of
https://github.com/dockur/windows.git
synced 2026-10-09 02:44:34 +01:00
fix: Do not install VirtIO GPU driver on Windows 8 (#2231)
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ COPY --from=qemux/qemu:7.50 --exclude=usr/bin/qemu-system-x86_64 / /
|
|||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
ARG VERSION_WSDD="1.27"
|
ARG VERSION_WSDD="1.27"
|
||||||
ARG VERSION_DXVK="2.7.1"
|
ARG VERSION_DXVK="3.0.2"
|
||||||
ARG VERSION_VIRTIO="1.9.61"
|
ARG VERSION_VIRTIO="1.9.61"
|
||||||
ARG VERSION_BLINTER="1.0.112"
|
ARG VERSION_BLINTER="1.0.112"
|
||||||
|
|
||||||
|
|||||||
@@ -96,21 +96,6 @@ rem Install the product key without activating Windows immediately.
|
|||||||
cscript.exe //B //Nologo "%SystemRoot%\System32\slmgr.vbs" /ipk "XXX"
|
cscript.exe //B //Nologo "%SystemRoot%\System32\slmgr.vbs" /ipk "XXX"
|
||||||
rem END PRODUCT_KEY
|
rem END PRODUCT_KEY
|
||||||
|
|
||||||
rem Trust the VirtIO display driver publisher to avoid an interactive prompt.
|
|
||||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "$catalog = Get-ChildItem -Path (Join-Path $env:SystemRoot 'Drivers\viogpudo') -Filter '*.cat' | Select-Object -First 1; if ($null -eq $catalog) { exit 1 }; $certificate = (Get-AuthenticodeSignature -LiteralPath $catalog.FullName).SignerCertificate; if ($null -eq $certificate) { exit 1 }; [IO.File]::WriteAllBytes((Join-Path $env:TEMP 'viogpudo.cer'), $certificate.Export([Security.Cryptography.X509Certificates.X509ContentType]::Cert))"
|
|
||||||
|
|
||||||
if not errorlevel 1 (
|
|
||||||
certutil.exe -addstore -f TrustedPublisher "%TEMP%\viogpudo.cer"
|
|
||||||
if not errorlevel 1 (
|
|
||||||
pnputil.exe -i -a "%SystemRoot%\Drivers\viogpudo\viogpudo.inf"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
del /q "%TEMP%\viogpudo.cer" >nul 2>&1
|
|
||||||
|
|
||||||
rem Install the VirtIO display driver last to avoid disrupting earlier setup work.
|
|
||||||
pnputil.exe -i -a "%SystemRoot%\Drivers\viogpudo\viogpudo.inf"
|
|
||||||
|
|
||||||
type nul > "%SETUP_COMPLETE%"
|
type nul > "%SETUP_COMPLETE%"
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
||||||
|
|||||||
@@ -96,21 +96,6 @@ rem Install the product key without activating Windows immediately.
|
|||||||
cscript.exe //B //Nologo "%SystemRoot%\System32\slmgr.vbs" /ipk "XXX"
|
cscript.exe //B //Nologo "%SystemRoot%\System32\slmgr.vbs" /ipk "XXX"
|
||||||
rem END PRODUCT_KEY
|
rem END PRODUCT_KEY
|
||||||
|
|
||||||
rem Trust the VirtIO display driver publisher to avoid an interactive prompt.
|
|
||||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "$catalog = Get-ChildItem -Path (Join-Path $env:SystemRoot 'Drivers\viogpudo') -Filter '*.cat' | Select-Object -First 1; if ($null -eq $catalog) { exit 1 }; $certificate = (Get-AuthenticodeSignature -LiteralPath $catalog.FullName).SignerCertificate; if ($null -eq $certificate) { exit 1 }; [IO.File]::WriteAllBytes((Join-Path $env:TEMP 'viogpudo.cer'), $certificate.Export([Security.Cryptography.X509Certificates.X509ContentType]::Cert))"
|
|
||||||
|
|
||||||
if not errorlevel 1 (
|
|
||||||
certutil.exe -addstore -f TrustedPublisher "%TEMP%\viogpudo.cer"
|
|
||||||
if not errorlevel 1 (
|
|
||||||
pnputil.exe -i -a "%SystemRoot%\Drivers\viogpudo\viogpudo.inf"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
del /q "%TEMP%\viogpudo.cer" >nul 2>&1
|
|
||||||
|
|
||||||
rem Install the VirtIO display driver last to avoid disrupting earlier setup work.
|
|
||||||
pnputil.exe -i -a "%SystemRoot%\Drivers\viogpudo\viogpudo.inf"
|
|
||||||
|
|
||||||
type nul > "%SETUP_COMPLETE%"
|
type nul > "%SETUP_COMPLETE%"
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
||||||
|
|||||||
@@ -1342,6 +1342,8 @@ getLink4() {
|
|||||||
|
|
||||||
[[ "${lang,,}" != "en" && "${lang,,}" != "en-us" ]] && return 0
|
[[ "${lang,,}" != "en" && "${lang,,}" != "en-us" ]] && return 0
|
||||||
|
|
||||||
|
return 0 # Disable
|
||||||
|
|
||||||
case "${id,,}" in
|
case "${id,,}" in
|
||||||
"win11x64-ltsc" | "win11x64-enterprise-ltsc" )
|
"win11x64-ltsc" | "win11x64-enterprise-ltsc" )
|
||||||
size=5144817664
|
size=5144817664
|
||||||
|
|||||||
+1
-1
@@ -73,7 +73,7 @@ setMachine() {
|
|||||||
"win2003"* | "win2008"* | "win2012"*| \
|
"win2003"* | "win2008"* | "win2012"*| \
|
||||||
"winvista"* | "win7"* | "win8"* | "reactos" )
|
"winvista"* | "win7"* | "win8"* | "reactos" )
|
||||||
|
|
||||||
writeState "vga" "vmvga" || return 1 ;;
|
writeState "vga" "vmware" || return 1 ;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user