diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 31a6c018..4dabfe38 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -37,8 +37,8 @@ $null = New-Module { Starts the installation loop. #> function Start-InstallationLoop { - $distribution = "PortValhalla"; - $wslLocation = "$env:ProgramData/PortValhalla/Ubuntu"; + $distribution = "ValhallaUbuntu"; + $wslLocation = "$env:ProgramData/PortValhalla/$distribution"; $wslDisk = "$wslLocation/ext4.vhdx"; while (-not (Get-IsFinished)) { @@ -164,15 +164,6 @@ $null = New-Module { 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; }