Skip to content

Commit

Permalink
refactor(ps): wsl_setup
Browse files Browse the repository at this point in the history
Remove automount option
  • Loading branch information
szymonos committed Nov 21, 2023
1 parent 87531eb commit ac640a4
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions wsl/wsl_setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,8 @@ begin {
wsl.exe --install --distribution $Distro --web-download
}
}
# *perform initial distro setup
# get installed distro details
$lxss = Get-WslDistro -FromRegistry | Where-Object Name -EQ $Distro
# enable automount in wsl.conf
$param = @{
Distro = $Distro
ConfDict = [ordered]@{
automount = [ordered]@{
enabled = 'true'
mountFsTab = 'true'
}
}
}
Set-WslConf @param
} 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 ac640a4

Please sign in to comment.