From a803d044bc8e083692fb66f3f7244e1f78bae2a6 Mon Sep 17 00:00:00 2001 From: Layer8Err Date: Sat, 24 Apr 2021 15:58:59 -0400 Subject: [PATCH] Added SUSE distros --- WSL2_Install.ps1 | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/WSL2_Install.ps1 b/WSL2_Install.ps1 index 4a5f89d..7d59586 100644 --- a/WSL2_Install.ps1 +++ b/WSL2_Install.ps1 @@ -192,12 +192,19 @@ function Select-Distro () { 'installed' = $false }, [PSCustomObject]@{ - 'Name' = 'OpenSUSE Leap 42' + 'Name' = 'openSUSE Leap 42' 'URI' = 'https://aka.ms/wsl-opensuse-42' 'AppxName' = 'openSUSELeap42' 'winpe' = 'openSUSE-42.exe' 'installed' = $false }, + [PSCustomObject]@{ + 'Name' = 'openSUSE Leap 15.2' + 'URI' = 'https://aka.ms/wsl-opensuseleap15-2' + 'AppxName' = 'openSUSELeap15' + 'winpe' = 'openSUSE-Leap-15.2.exe' + 'installed' = $false + }, [PSCustomObject]@{ 'Name' = 'SUSE Linux Enterprise Server 12' 'URI' = 'https://aka.ms/wsl-sles-12' @@ -205,6 +212,13 @@ function Select-Distro () { 'winpe' = 'SLES-12.exe' 'installed' = $false }, + [PSCustomObject]@{ + 'Name' = 'SUSE Linux Enterprise Server 15' + 'URI' = 'https://aka.ms/wsl-SUSELinuxEnterpriseServer15SP2' + 'AppxName' = 'SUSELinuxEnterpriseServer15SP2' + 'winpe' = 'SUSE-Linux-Enterprise-Server-15-SP2.exe' + 'installed' = $false + }, [PSCustomObject]@{ 'Name' = 'Alpine' 'StoreLink' = 'https://www.microsoft.com/en-us/p/alpine-wsl/9p804crf0395' @@ -241,7 +255,7 @@ function Select-Distro () { } Write-Host(($i + 1).ToString() + " " + ($distrolist.Name)[$i] + " " + $installedTxt) } - $distroChoice = Read-Host '>' + [Int]$distroChoice = Read-Host '>' $choiceNum = 0 if (($distroChoice.Length -ne 0) -and ($distroChoice -match '^\d+$')) { if (($distroChoice -gt 0) -and ($distroChoice -le $distrolist.Length)) {