Streamline WSL distribution name
This commit is contained in:
parent
a5f1f06ca0
commit
b644b0f74c
|
@ -166,6 +166,16 @@ $null = New-Module {
|
|||
Copy-Item -Recurse -Force (Get-AppxPackage "*Ubuntu*").InstallLocation $wslLocation;
|
||||
Set-UserPermissions $wslLocation;
|
||||
& "$wslLocation\ubuntu.exe" install --root;
|
||||
wsl --shutdown;
|
||||
|
||||
& {
|
||||
$tempDisk = New-TemporaryFile;
|
||||
Move-Item $wslDisk $tempDisk;
|
||||
wsl --deregister Ubuntu;
|
||||
Move-Item $tempDisk $wslDisk;
|
||||
wsl --import-in-place $distribution $wslDisk;
|
||||
};
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue