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 { 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 "- $_" })