Commit 1433da02 authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: use major version only for RHEL compat distros

parent 522c423b
......@@ -412,6 +412,11 @@ if distro os-release ; then
fi
;;
esac
case "$VENDOR_ID" in
reld|rhel|msvsphere|alteros|rockylinux|almalinux)
DISTRIB_RELEASE=$(normalize_version1 "$DISTRIB_RELEASE")
;;
esac
DISTRIB_FULL_RELEASE="$DISTRIB_RELEASE"
DISTRIB_CODENAME="$VERSION_CODENAME"
......
MSVSphere/9.3 msvsphere/9.3
MSVSphere/9 msvsphere/9
RHEL/7.9 rhel/7.9
RHEL/7 rhel/7
RELS/7.9 reld/7.9
RELS/7 reld/7
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment