新增适配 Red Hat Enterprise Linux 10 & AlmaLinux 10

This commit is contained in:
Super Manito
2025-05-29 03:31:37 +08:00
parent 313490da35
commit 26f493a762
9 changed files with 1698 additions and 1366 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
## Author: SuperManito
## Modified: 2025-05-19
## Modified: 2025-05-29
## License: MIT
## GitHub: https://github.com/SuperManito/LinuxMirrors
## Website: https://linuxmirrors.cn
@@ -446,6 +446,10 @@ function collect_system_info() {
fi
;;
"${SYSTEM_REDHAT}")
# 拦截最新的红帽 10 版本
if [[ "${SYSTEM_VERSION_ID_MAJOR}" == 10 ]]; then
output_error "暂不支持当前操作系统,请等待官方适配 10 版本!"
fi
SYSTEM_JUDGMENT="$(awk '{printf $1}' $File_RedHatRelease)"
# 拦截 Anolis OS 8.8 以下版本,不支持从 Docker 官方仓库安装
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_ANOLISOS}" ]]; then
@@ -506,9 +510,6 @@ function collect_system_info() {
"${SYSTEM_UBUNTU}" | "${SYSTEM_ZORIN}")
SOURCE_BRANCH="ubuntu"
;;
"${SYSTEM_RHEL}")
SOURCE_BRANCH="rhel"
;;
"${SYSTEM_RASPBERRY_PI_OS}")
case "${DEVICE_ARCH_RAW}" in
x86_64 | aarch64)