mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
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:
@@ -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"
|
||||
|
||||
@@ -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.* &&
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user