Skip to content

Commit

Permalink
refactor(ps): wsl_setup
Browse files Browse the repository at this point in the history
Do not disable appending Windows path
  • Loading branch information
szymonos committed Nov 15, 2023
1 parent 9f581ce commit 70791af
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions wsl/wsl_setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 = @{
Expand All @@ -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 "- $_" })
Expand Down

0 comments on commit 70791af

Please sign in to comment.