Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
4f87f7fb
Commit
4f87f7fb
authored
Aug 21, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distr_info: add RockyLinux support
parent
0b1d5cd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
3 deletions
+31
-3
distr_info
bin/distr_info
+14
-3
os-release
tests/etc/RockyLinux/etc/os-release
+17
-0
No files found.
bin/distr_info
View file @
4f87f7fb
...
...
@@ -365,6 +365,11 @@ normalize_version3()
echo
"
$1
"
|
sed
-e
"s|^
\(
[^.][^.]*
\.
[^.][^.]*
\.
[^.][^.]*
\)\.
.*|
\1
|"
}
is_numeric
()
{
echo
"
$1
"
|
grep
-q
"^[0-9][0-9]*$"
}
fill_distr_info
()
{
...
...
@@ -394,11 +399,17 @@ if distro os-release ; then
#PRETTY_NAME
VENDOR_ID
=
"
$ID
"
case
"
$VENDOR_ID
"
in
ubuntu|reld|rhel|astra|manjaro|redos|msvsphere|alteros
)
ubuntu|reld|rhel|astra|manjaro|redos|msvsphere|alteros
|rockylinux|almalinux
)
;;
*
)
# ID_LIKE can be 'rhel centos fedora', use latest word
[
-n
"
$ID_LIKE
"
]
&&
VENDOR_ID
=
"
$(
echo
"
$ID_LIKE
"
| xargs
-n1
|
tail
-n1
)
"
if
[
-n
"
$ID_LIKE
"
]
;
then
# ID_LIKE can be 'rhel centos fedora', use first word
VENDOR_ID
=
"
$(
echo
"
$ID_LIKE
"
| xargs
-n1
|
head
-n1
)
"
# use latest word for versions like Fedora has
if
is_numeric
"
$DISTRIB_RELEASE
"
&&
[
"
$DISTRIB_RELEASE
"
-ge
20
]
;
then
VENDOR_ID
=
"
$(
echo
"
$ID_LIKE
"
| xargs
-n1
|
tail
-n1
)
"
fi
fi
;;
esac
DISTRIB_FULL_RELEASE
=
"
$DISTRIB_RELEASE
"
...
...
tests/etc/RockyLinux/etc/os-release
0 → 100644
View file @
4f87f7fb
NAME="Rocky Linux"
VERSION="9.4 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.4"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.4 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.4"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.4"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment