nightly build: Include the AlmaLinux RHEL kernels

Add support for RHEL 8.6 8.7 9.0 9.1 nightly builds.
This commit is contained in:
Gleb Chesnokov
2022-12-14 10:25:38 +03:00
parent 80471ef507
commit 31699069f3
4 changed files with 19 additions and 3 deletions
+4
View File
@@ -56,6 +56,10 @@ ABT_KERNELS=" \
3.12.74-nc \
3.11.10-nc \
3.10.108-nc \
5.14.0-162.6.1.el9_1^AlmaLinux^9.1-nc \
5.14.0-70.30.1.el9_0^AlmaLinux^9.0-nc \
4.18.0-425.3.1.el8^AlmaLinux^8.7-nc \
4.18.0-372.32.1.el8_6^AlmaLinux^8.6-nc \
4.18.0-348.2.1.el8_5^CentOS^8.5.2111-nc \
4.18.0-305.3.1.el8^CentOS^8.4.2105-nc \
4.18.0-240.15.1.el8_3^CentOS^8.3.2011-nc \
+1 -1
View File
@@ -113,7 +113,7 @@ function specialize_patch {
local releasevermajor="$1"
local releaseverminor="$2"
case "$distro" in
CentOS)
CentOS|AlmaLinux)
if [ -n "$releasevermajor" ]; then
ao=(
-v "RHEL_MAJOR=$releasevermajor"
+2 -2
View File
@@ -832,7 +832,7 @@ function download_and_extract_distro_rpm {
tr '\n' ' ')"
for url in "${urls[@]}"; do
case "$distro" in
CentOS)
CentOS|AlmaLinux)
wget -q -nc "${url}/kernel-${kver}.src.rpm" && break
;;
UEK)
@@ -847,7 +847,7 @@ function download_and_extract_distro_rpm {
(
cd "${tmpdir}" &&
case "$distro" in
CentOS)
CentOS|AlmaLinux)
rpm2cpio "${kernel_downloads}/kernel-${kver}.src.rpm" |
cpio -i --make-directories --quiet &&
tar xaf "linux-${kver}"*.tar.* &&
+12
View File
@@ -35,6 +35,12 @@ function get_srpm_urls() {
echo "http://ftp.redhat.com/redhat/rhel/rc/7/Server/source/tree/Packages";;
esac
;;
"AlmaLinux")
case $releasever in
[89]*)
echo "https://repo.almalinux.org/vault/${releasever}/BaseOS/Source/Packages/";;
esac
;;
"Oracle Linux Server"|"UEK")
echo "http://public-yum.oracle.com/repo/OracleLinux/OL${releasevermajor}/${releaseverminor}/base/${arch}/getPackageSource"
echo "http://public-yum.oracle.com/repo/OracleLinux/OL${releasevermajor}/latest/${arch}/getPackageSource"
@@ -89,6 +95,12 @@ function get_rpm_urls() {
;;
"Red Hat Enterprise Linux"*)
echo "";;
"AlmaLinux")
case $releasever in
[89]*)
echo "https://mirror.yandex.ru/almalinux/${releasever}/BaseOS/${arch}/os/Packages/";;
esac
;;
"Oracle Linux Server"|"UEK")
echo "http://public-yum.oracle.com/repo/OracleLinux/OL${releasevermajor}/${releaseverminor}/base/${arch}/getPackageSource"
echo "http://public-yum.oracle.com/repo/OracleLinux/OL${releasevermajor}/latest/${arch}/getPackageSource"