Fix WSL in KVM

This commit is contained in:
Manuel Thalmann 2023-12-11 12:48:19 +01:00
parent 0ac59b83a8
commit d83eae2147
3 changed files with 13 additions and 2 deletions

View file

@ -1,5 +1,5 @@
#!/bin/pwsh
$env:WIN_COMPUTER_NAME = "win11";
$env:SETUP_SCRIPT_NAME = [System.IO.Path]::GetRelativePath("$PSScriptRoot/../../..", "$PSScriptRoot/Install.ps1");
$env:WIN_COMPUTER_NAME ??= "win11";
$env:SETUP_SCRIPT_NAME ??= [System.IO.Path]::GetRelativePath("$PSScriptRoot/../../..", "$PSScriptRoot/Install.ps1");
. "$PSScriptRoot/../../../scripts/Windows/OS/Setup.ps1";

View file

@ -0,0 +1,7 @@
#!/bin/pwsh
function Initialize-Configuration {
# Hide update which prevents use of WSL in KVM
Get-WindowsUpdate -KBArticleID KB5032190 -Hide
}
. "$PSScriptRoot/../../Generic/Windows/Install.ps1";

View file

@ -0,0 +1,4 @@
#!/bin/pwsh
$env:SETUP_SCRIPT_NAME ??= [System.IO.Path]::GetRelativePath("$PSScriptRoot/../../..", "$PSScriptRoot/Install.ps1");
. "$PSScriptRoot/../../Generic/Windows/Setup.ps1";