Fix WSL in KVM
This commit is contained in:
parent
d884514678
commit
6adcc74545
3 changed files with 13 additions and 2 deletions
|
@ -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";
|
||||
|
|
7
profiles/KVM/Windows/Install.ps1
Normal file
7
profiles/KVM/Windows/Install.ps1
Normal 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";
|
4
profiles/KVM/Windows/Setup.ps1
Normal file
4
profiles/KVM/Windows/Setup.ps1
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/pwsh
|
||||
$env:SETUP_SCRIPT_NAME ??= [System.IO.Path]::GetRelativePath("$PSScriptRoot/../../..", "$PSScriptRoot/Install.ps1");
|
||||
|
||||
. "$PSScriptRoot/../../Generic/Windows/Setup.ps1";
|
Loading…
Reference in a new issue