Skip to content

Commit a75095f

Browse files
author
Eugene Kovalenko
authored
Add Fedora 38 and remove outdated distros (#77)
Removed Debian 9, Ubuntu 18.04, Linux Mint 19 as reached EOL. Added Fedora 38 and removed Fedora 36. Updated newest supported Linux kernel version to 6.3.
1 parent 360cbde commit a75095f

File tree

1 file changed

+19
-25
lines changed

1 file changed

+19
-25
lines changed

scripts/install-elastio.sh

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ me="./install-elastio.sh"
44
default_branch=release
55

66
MAX_LINUX_VER=6
7-
MAX_LINUX_MAJOR_REV=2
7+
MAX_LINUX_MAJOR_REV=3
88

99
cent_fedora_kernel_devel_install()
1010
{
@@ -315,33 +315,37 @@ case ${dist_name} in
315315

316316
fedora | fc )
317317
case ${dist_ver}-$(uname -m) in
318-
36-x86_64 ) cent_fedora_install Fedora $(rpm -E %fedora) fc ;;
319-
37-* ) cent_fedora_install Fedora $(rpm -E %fedora) fc ;;
318+
37-x86_64 ) cent_fedora_install Fedora $(rpm -E %fedora) fc ;;
319+
38-* ) cent_fedora_install Fedora $(rpm -E %fedora) fc ;;
320320
*-x86_64 )
321-
echo "Fedora versions 36 and 37 are supported on x86_64 processors. Current distro version $dist_ver isn't supported."
321+
echo "Fedora versions 37 and 38 are supported on x86_64 processors. Current distro version $dist_ver isn't supported."
322322
exit 1
323323
;;
324324
*-aarch64 )
325-
echo "Fedora version 37 is supported on aarch64 processors. Current distro version $dist_ver isn't supported."
325+
echo "Fedora version 38 is supported on aarch64 processors. Current distro version $dist_ver isn't supported."
326326
exit 1
327327
;;
328328
esac
329329
;;
330330

331331
debian | ubuntu | pop )
332-
333-
# Ubuntu supported versions are 18.XX - 22.XX on amd64 and 20.XX - 22.XX on arm64
334-
# Debian supported versions are 9 - 12 on amd64 and 10 - 12 on arm64
335-
[ $(uname -m) == "x86_64" ] && min_ver=9 || min_ver=10
332+
min_ver=10
336333
max_ver=12
337334
case ${dist_name} in
338-
ubuntu | pop )
339-
[ $(uname -m) == "x86_64" ] && min_ver=18 || min_ver=20
335+
ubuntu )
336+
min_ver=20
337+
max_ver=22
338+
;;
339+
pop )
340+
min_ver=22
340341
max_ver=22
341-
;;
342+
;;
342343
esac
343344

344-
# Here dist_ver is 9 - 12 for Debian and 16 - 22 for Ubuntu
345+
# Ubuntu supported versions are 20.XX - 22.XX,
346+
# Debian supported versions are 10 - 12
347+
# on both amd64 and arm64.
348+
# Pop!OS is equal to Ubuntu 22.04 and exists just of the single version 22.04.
345349
dist_ver=$(echo $dist_ver_dot | cut -d'.' -f1)
346350
if [ $dist_ver -ge $min_ver ] && [ $dist_ver -le $max_ver ]; then
347351
# We don't have separate repo for Pop!OS.
@@ -354,23 +358,13 @@ case ${dist_name} in
354358
;;
355359

356360
# The Linux Mint versioning scheme is a bit hard to understand and a bit discrete.
357-
# They have LTS version 5 based on Debian 11 (Bullseye) and versions 19.X - 21.X
358-
# based on Ubuntu 18.04 (Bionic), 20.04 (Focal), 22.04 (Jammy) respectively =)
359-
# Moreover, they have version 19 (not 19.0) and versions 19.1 - 19.3. The same is with the twenties.
360-
# And probably the same will be with the twenty-first.
361+
# They have LTS version 5 based on Debian 11 (Bullseye) and versions 20.X - 21.X
362+
# based on Ubuntu 20.04 (Focal), 22.04 (Jammy) respectively.
361363
# See more here https://www.linuxmint.com/download_all.php
362364
# That's why we'll use discrete version "transformer" from Mint versions to Deian/Ubuntu versions.
363365
linuxmint )
364366
case $dist_ver_dot in
365367
5 ) deb_ubu_install debian 11 ;;
366-
19* )
367-
if [ $(uname -m) == "x86_64" ]; then
368-
deb_ubu_install debian 9
369-
else
370-
echo "The Linux Mint version $dist_ver_dot is not supported on $(uname -m) processors."
371-
exit 1
372-
fi
373-
;;
374368
20* ) deb_ubu_install debian 10 ;;
375369
21* ) deb_ubu_install ubuntu "22.04" ;;
376370
*)

0 commit comments

Comments
 (0)