From 70791afe646aaf00a5f3a0c5572c08bc73959288 Mon Sep 17 00:00:00 2001 From: Szymon Osiecki Date: Wed, 15 Nov 2023 22:48:04 +0100 Subject: [PATCH 1/2] refactor(ps): wsl_setup Do not disable appending Windows path --- wsl/wsl_setup.ps1 | 7 ------- 1 file changed, 7 deletions(-) diff --git a/wsl/wsl_setup.ps1 b/wsl/wsl_setup.ps1 index e43e3461..d1163c37 100644 --- a/wsl/wsl_setup.ps1 +++ b/wsl/wsl_setup.ps1 @@ -204,7 +204,6 @@ begin { } } # *perform initial distro setup - # disable appending Windows path inside distro to fix mounting issues $lxss = Get-WslDistro -FromRegistry | Where-Object Name -EQ $Distro # enable automount in wsl.conf $param = @{ @@ -217,12 +216,6 @@ begin { } } Set-WslConf @param - if ($lxss -and $lxss.Flags -notin @(5, 13)) { - $flag = $lxss.Version -eq 1 ? 5 : 13 - Set-ItemProperty -Path $lxss.PSPath -Name 'Flags' -Value $flag - Write-Host "`nrestarting WSL to apply changes..." -ForegroundColor Cyan - wsl.exe --shutdown $Distro - } } elseif ($lxss) { Write-Host "Found $($lxss.Count) distro$($lxss.Count -eq 1 ? '' : 's') to update." -ForegroundColor White $lxss.Name.ForEach({ Write-Host "- $_" }) From be64cd8cf138bfa2d2a3a04f6a2f8bd6cd37795a Mon Sep 17 00:00:00 2001 From: Szymon Osiecki Date: Wed, 15 Nov 2023 23:26:13 +0100 Subject: [PATCH 2/2] refactor(ps): wsl_certs_add - default Uris --- wsl/wsl_certs_add.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wsl/wsl_certs_add.ps1 b/wsl/wsl_certs_add.ps1 index ece1dfba..dee94085 100644 --- a/wsl/wsl_certs_add.ps1 +++ b/wsl/wsl_certs_add.ps1 @@ -25,7 +25,7 @@ param ( [string]$Distro, [ValidateNotNullOrEmpty()] - [string[]]$Uris = @('github.com', 'www.powershellgallery.com') + [string[]]$Uris = @('www.google.com', 'www.powershellgallery.com') ) begin {