Skip to content

Commit f34e474

Browse files
committed
Upgrade distribution versions
Add RHEL 9.x and 10.x, Ubuntu 24.04 and 25.04, and SLES 16.x Remove RHEL 6.x, Ubuntu 16.04 and SLES 11.x Signed-off-by: Eric Bischoff <ebischoff@suse.com>
1 parent c04b3c6 commit f34e474

27 files changed

+356
-939
lines changed

data/setupDisk

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
###############################################################################
3+
# Copyright 2025 Contributors to the Feilong Project
34
# Copyright 2017 IBM Corp.
45
#
56
# Licensed under the Apache License, Version 2.0 (the "License"); you may
@@ -28,7 +29,7 @@ function getOsVersion {
2829
# None
2930
# @Output:
3031
# os - Variable set with OS and version information. For example:
31-
# "rhel62" or "sles11sp2"
32+
# "rhel89" or "sles12sp5"
3233
# @Code:
3334
if [[ -e "/etc/os-release" ]]; then
3435
os=`cat /etc/os-release | grep "^ID=" | sed \
@@ -39,34 +40,6 @@ function getOsVersion {
3940
-e 's/"//g' \
4041
-e 's/\.//'`
4142
os=$os$version
42-
43-
#The /etc/SuSE-release file will be deprecated in sles11.4 and later release
44-
elif [[ -e "/etc/SuSE-release" ]]; then
45-
os='sles'
46-
version=`cat /etc/SuSE-release | grep "VERSION =" | sed \
47-
-e 's/^.*VERSION =//' \
48-
-e 's/\s*$//' \
49-
-e 's/.//' \
50-
-e 's/[^0-9]*([0-9]+).*/$1/'`
51-
os=$os$version
52-
53-
# Append service level
54-
level=`echo "/etc/SuSE-release" | grep "LEVEL =" | sed \
55-
-e 's/^.*LEVEL =//' \
56-
-e 's/\s*$//' \
57-
-e 's/.//' \
58-
-e 's/[^0-9]*([0-9]+).*/$1/'`
59-
os=$os'sp'$level
60-
61-
#The /etc/redhat-release file will be deprecated in rhel7 and later release
62-
elif [[ -e "/etc/redhat-release" ]]; then
63-
os='rhel'
64-
version=`cat /etc/redhat-release | grep -i "Red Hat Enterprise Linux Server" | sed \
65-
-e 's/[A-Za-z\/\.\(\)]//g' \
66-
-e 's/^ *//g' \
67-
-e 's/ *$//g' \
68-
-e 's/\s.*$//'`
69-
os=$os$version
7043
fi
7144
return
7245
}

0 commit comments

Comments
 (0)