mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-07 21:09:56 +00:00
core: 添加 almalinux 10, nixos 25.05
This commit is contained in:
parent
b879df8e9b
commit
1a156e9741
10
README.en.md
10
README.en.md
@ -36,13 +36,13 @@ The system requirements for the target system are as follows:
|
|||||||
| <img width="16" height="16" src="https://github.com/bin456789/reinstall/assets/7548515/f74b3d5b-085f-4df3-bcc9-8a9bd80bb16d" /> Kali | Rolling | 256 MB | 1 ~ 1.5 GB ^ |
|
| <img width="16" height="16" src="https://github.com/bin456789/reinstall/assets/7548515/f74b3d5b-085f-4df3-bcc9-8a9bd80bb16d" /> Kali | Rolling | 256 MB | 1 ~ 1.5 GB ^ |
|
||||||
| <img width="16" height="16" src="https://documentation.ubuntu.com/server/_static/favicon.png" /> Ubuntu | 16.04 LTS - 24.04 LTS, 25.04 | 512 MB \* | 2 GB |
|
| <img width="16" height="16" src="https://documentation.ubuntu.com/server/_static/favicon.png" /> Ubuntu | 16.04 LTS - 24.04 LTS, 25.04 | 512 MB \* | 2 GB |
|
||||||
| <img width="16" height="16" src="https://img.alicdn.com/imgextra/i1/O1CN01oJnJZg1yK4RzI4Rx2_!!6000000006559-2-tps-118-118.png" /> Anolis | 7, 8, 23 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://img.alicdn.com/imgextra/i1/O1CN01oJnJZg1yK4RzI4Rx2_!!6000000006559-2-tps-118-118.png" /> Anolis | 7, 8, 23 | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://www.redhat.com/favicon.ico" /> RHEL <img width="16" height="16" src="https://almalinux.org/fav/favicon.ico" /> AlmaLinux <img width="16" height="16" src="https://rockylinux.org/favicon.png" /> Rocky <img width="16" height="16" src="https://www.oracle.com/asset/web/favicons/favicon-32.png" /> Oracle | 8, 9 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://www.redhat.com/favicon.ico" /> RHEL <img width="16" height="16" src="https://almalinux.org/fav/favicon.ico" /> AlmaLinux <img width="16" height="16" src="https://rockylinux.org/favicon.png" /> Rocky <img width="16" height="16" src="https://www.oracle.com/asset/web/favicons/favicon-32.png" /> Oracle | 8, 9, 10 (if released) | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://opencloudos.org/qq.ico" /> OpenCloudOS | 8, 9, Stream 23 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://opencloudos.org/qq.ico" /> OpenCloudOS | 8, 9, Stream 23 | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://www.centos.org/assets/icons/favicon.svg" /> CentOS Stream | 9, 10 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://www.centos.org/assets/icons/favicon.svg" /> CentOS Stream | 9, 10 | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://fedoraproject.org/favicon.ico" /> Fedora | 41, 42 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://fedoraproject.org/favicon.ico" /> Fedora | 41, 42 | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://www.openeuler.org/favicon.ico" /> openEuler | 20.03 LTS - 24.03 LTS, 25.03 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://www.openeuler.org/favicon.ico" /> openEuler | 20.03 LTS - 24.03 LTS, 25.03 | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://static.opensuse.org/favicon.ico" /> openSUSE | Leap 15.6, Tumbleweed (Rolling) | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://static.opensuse.org/favicon.ico" /> openSUSE | Leap 15.6, Tumbleweed (Rolling) | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://nixos.org/favicon.svg" /> NixOS | 24.11 | 512 MB | 5 GB |
|
| <img width="16" height="16" src="https://nixos.org/favicon.svg" /> NixOS | 25.05 | 512 MB | 5 GB |
|
||||||
| <img width="16" height="16" src="https://archlinux.org/static/favicon.png" /> Arch | Rolling | 512 MB | 5 GB |
|
| <img width="16" height="16" src="https://archlinux.org/static/favicon.png" /> Arch | Rolling | 512 MB | 5 GB |
|
||||||
| <img width="16" height="16" src="https://www.gentoo.org/assets/img/logo/gentoo-g.png" /> Gentoo | Rolling | 512 MB | 5 GB |
|
| <img width="16" height="16" src="https://www.gentoo.org/assets/img/logo/gentoo-g.png" /> Gentoo | Rolling | 512 MB | 5 GB |
|
||||||
| <img width="16" height="16" src="https://aosc.io/assets/distros/aosc-os.svg" /> AOSC OS | Rolling | 512 MB | 5 GB |
|
| <img width="16" height="16" src="https://aosc.io/assets/distros/aosc-os.svg" /> AOSC OS | Rolling | 512 MB | 5 GB |
|
||||||
@ -126,13 +126,13 @@ certutil -urlcache -f -split https://cnb.cool/bin456789/reinstall/-/git/raw/main
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash reinstall.sh anolis 7|8|23
|
bash reinstall.sh anolis 7|8|23
|
||||||
opencloudos 8|9|23
|
|
||||||
rocky 8|9
|
rocky 8|9
|
||||||
oracle 8|9
|
oracle 8|9
|
||||||
almalinux 8|9
|
almalinux 8|9|10
|
||||||
|
opencloudos 8|9|23
|
||||||
centos 9|10
|
centos 9|10
|
||||||
fedora 41|42
|
fedora 41|42
|
||||||
nixos 24.11
|
nixos 25.05
|
||||||
debian 9|10|11|12
|
debian 9|10|11|12
|
||||||
opensuse 15.6|tumbleweed
|
opensuse 15.6|tumbleweed
|
||||||
alpine 3.18|3.19|3.20|3.21
|
alpine 3.18|3.19|3.20|3.21
|
||||||
|
10
README.md
10
README.md
@ -36,13 +36,13 @@
|
|||||||
| <img width="16" height="16" src="https://github.com/bin456789/reinstall/assets/7548515/f74b3d5b-085f-4df3-bcc9-8a9bd80bb16d" /> Kali | 滚动 | 256 MB | 1 ~ 1.5 GB ^ |
|
| <img width="16" height="16" src="https://github.com/bin456789/reinstall/assets/7548515/f74b3d5b-085f-4df3-bcc9-8a9bd80bb16d" /> Kali | 滚动 | 256 MB | 1 ~ 1.5 GB ^ |
|
||||||
| <img width="16" height="16" src="https://documentation.ubuntu.com/server/_static/favicon.png" /> Ubuntu | 16.04 LTS - 24.04 LTS, 25.04 | 512 MB \* | 2 GB |
|
| <img width="16" height="16" src="https://documentation.ubuntu.com/server/_static/favicon.png" /> Ubuntu | 16.04 LTS - 24.04 LTS, 25.04 | 512 MB \* | 2 GB |
|
||||||
| <img width="16" height="16" src="https://img.alicdn.com/imgextra/i1/O1CN01oJnJZg1yK4RzI4Rx2_!!6000000006559-2-tps-118-118.png" /> Anolis | 7, 8, 23 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://img.alicdn.com/imgextra/i1/O1CN01oJnJZg1yK4RzI4Rx2_!!6000000006559-2-tps-118-118.png" /> Anolis | 7, 8, 23 | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://www.redhat.com/favicon.ico" /> RHEL <img width="16" height="16" src="https://almalinux.org/fav/favicon.ico" /> AlmaLinux <img width="16" height="16" src="https://rockylinux.org/favicon.png" /> Rocky <img width="16" height="16" src="https://www.oracle.com/asset/web/favicons/favicon-32.png" /> Oracle | 8, 9 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://www.redhat.com/favicon.ico" /> RHEL <img width="16" height="16" src="https://almalinux.org/fav/favicon.ico" /> AlmaLinux <img width="16" height="16" src="https://rockylinux.org/favicon.png" /> Rocky <img width="16" height="16" src="https://www.oracle.com/asset/web/favicons/favicon-32.png" /> Oracle | 8, 9, 10 (如果有) | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://opencloudos.org/qq.ico" /> OpenCloudOS | 8, 9, Stream 23 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://opencloudos.org/qq.ico" /> OpenCloudOS | 8, 9, Stream 23 | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://www.centos.org/assets/icons/favicon.svg" /> CentOS Stream | 9, 10 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://www.centos.org/assets/icons/favicon.svg" /> CentOS Stream | 9, 10 | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://fedoraproject.org/favicon.ico" /> Fedora | 41, 42 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://fedoraproject.org/favicon.ico" /> Fedora | 41, 42 | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://www.openeuler.org/favicon.ico" /> openEuler | 20.03 LTS - 24.03 LTS, 25.03 | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://www.openeuler.org/favicon.ico" /> openEuler | 20.03 LTS - 24.03 LTS, 25.03 | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://static.opensuse.org/favicon.ico" /> openSUSE | Leap 15.6, Tumbleweed (滚动) | 512 MB \* | 5 GB |
|
| <img width="16" height="16" src="https://static.opensuse.org/favicon.ico" /> openSUSE | Leap 15.6, Tumbleweed (滚动) | 512 MB \* | 5 GB |
|
||||||
| <img width="16" height="16" src="https://nixos.org/favicon.svg" /> NixOS | 24.11 | 512 MB | 5 GB |
|
| <img width="16" height="16" src="https://nixos.org/favicon.svg" /> NixOS | 25.05 | 512 MB | 5 GB |
|
||||||
| <img width="16" height="16" src="https://archlinux.org/static/favicon.png" /> Arch | 滚动 | 512 MB | 5 GB |
|
| <img width="16" height="16" src="https://archlinux.org/static/favicon.png" /> Arch | 滚动 | 512 MB | 5 GB |
|
||||||
| <img width="16" height="16" src="https://www.gentoo.org/assets/img/logo/gentoo-g.png" /> Gentoo | 滚动 | 512 MB | 5 GB |
|
| <img width="16" height="16" src="https://www.gentoo.org/assets/img/logo/gentoo-g.png" /> Gentoo | 滚动 | 512 MB | 5 GB |
|
||||||
| <img width="16" height="16" src="https://aosc.io/assets/distros/aosc-os.svg" /> 安同 OS | 滚动 | 512 MB | 5 GB |
|
| <img width="16" height="16" src="https://aosc.io/assets/distros/aosc-os.svg" /> 安同 OS | 滚动 | 512 MB | 5 GB |
|
||||||
@ -126,13 +126,13 @@ certutil -urlcache -f -split https://cnb.cool/bin456789/reinstall/-/git/raw/main
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash reinstall.sh anolis 7|8|23
|
bash reinstall.sh anolis 7|8|23
|
||||||
opencloudos 8|9|23
|
|
||||||
rocky 8|9
|
rocky 8|9
|
||||||
oracle 8|9
|
oracle 8|9
|
||||||
almalinux 8|9
|
almalinux 8|9|10
|
||||||
|
opencloudos 8|9|23
|
||||||
centos 9|10
|
centos 9|10
|
||||||
fedora 41|42
|
fedora 41|42
|
||||||
nixos 24.11
|
nixos 25.05
|
||||||
debian 9|10|11|12
|
debian 9|10|11|12
|
||||||
opensuse 15.6|tumbleweed
|
opensuse 15.6|tumbleweed
|
||||||
alpine 3.18|3.19|3.20|3.21
|
alpine 3.18|3.19|3.20|3.21
|
||||||
|
61
reinstall.sh
61
reinstall.sh
@ -49,10 +49,10 @@ Usage: $reinstall_____ anolis 7|8|23
|
|||||||
opencloudos 8|9|23
|
opencloudos 8|9|23
|
||||||
rocky 8|9
|
rocky 8|9
|
||||||
oracle 8|9
|
oracle 8|9
|
||||||
almalinux 8|9
|
almalinux 8|9|10
|
||||||
centos 9|10
|
centos 9|10
|
||||||
fedora 41|42
|
fedora 41|42
|
||||||
nixos 24.11
|
nixos 25.05
|
||||||
debian 9|10|11|12
|
debian 9|10|11|12
|
||||||
opensuse 15.6|tumbleweed
|
opensuse 15.6|tumbleweed
|
||||||
alpine 3.18|3.19|3.20|3.21
|
alpine 3.18|3.19|3.20|3.21
|
||||||
@ -649,7 +649,7 @@ is_absolute_path() {
|
|||||||
[[ "$1" = /* ]]
|
[[ "$1" = /* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_cpu_supports_x86_64_v3() {
|
is_cpu_supports_x86_64_v3() {
|
||||||
# 用 ld.so/cpuid/coreinfo.exe 更准确
|
# 用 ld.so/cpuid/coreinfo.exe 更准确
|
||||||
# centos 7 /usr/lib64/ld-linux-x86-64.so.2 没有 --help
|
# centos 7 /usr/lib64/ld-linux-x86-64.so.2 没有 --help
|
||||||
# alpine gcompat /lib/ld-linux-x86-64.so.2 没有 --help
|
# alpine gcompat /lib/ld-linux-x86-64.so.2 没有 --help
|
||||||
@ -666,11 +666,17 @@ assert_cpu_supports_x86_64_v3() {
|
|||||||
|
|
||||||
for flag in $need_flags; do
|
for flag in $need_flags; do
|
||||||
if ! grep -qw $flag <<<"$had_flags"; then
|
if ! grep -qw $flag <<<"$had_flags"; then
|
||||||
error_and_exit "Could not install $distro $releasever because the CPU does not support x86-64-v3."
|
return 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert_cpu_supports_x86_64_v3() {
|
||||||
|
if ! is_cpu_supports_x86_64_v3; then
|
||||||
|
error_and_exit "Could not install $distro $releasever because the CPU does not support x86-64-v3."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# sr-latn-rs 到 sr-latn
|
# sr-latn-rs 到 sr-latn
|
||||||
en_us() {
|
en_us() {
|
||||||
echo "$lang" | awk -F- '{print $1"-"$2}'
|
echo "$lang" | awk -F- '{print $1"-"$2}'
|
||||||
@ -1581,28 +1587,33 @@ Continue with DD?
|
|||||||
}
|
}
|
||||||
|
|
||||||
setos_centos_almalinux_rocky_fedora() {
|
setos_centos_almalinux_rocky_fedora() {
|
||||||
# el 10 需要 x86-64-v3
|
# el 10 需要 x86-64-v3,除了 almalinux
|
||||||
if [ "$basearch" = x86_64 ] &&
|
if [ "$basearch" = x86_64 ] &&
|
||||||
{ [ "$distro" = centos ] || [ "$distro" = almalinux ] || [ "$distro" = rocky ]; } &&
|
{ [ "$distro" = centos ] || [ "$distro" = rocky ]; } &&
|
||||||
[ "$releasever" -ge 10 ]; then
|
[ "$releasever" -ge 10 ]; then
|
||||||
assert_cpu_supports_x86_64_v3
|
assert_cpu_supports_x86_64_v3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
elarch=$basearch
|
||||||
|
if [ "$distro" = almalinux ] && [ "$basearch" = x86_64 ] && ! is_cpu_supports_x86_64_v3; then
|
||||||
|
elarch=x86_64_v2
|
||||||
|
fi
|
||||||
|
|
||||||
if is_use_cloud_image; then
|
if is_use_cloud_image; then
|
||||||
# ci
|
# ci
|
||||||
if is_in_china; then
|
if is_in_china; then
|
||||||
case $distro in
|
case $distro in
|
||||||
centos) ci_mirror="https://mirror.nju.edu.cn/centos-cloud/centos" ;;
|
centos) ci_mirror="https://mirror.nju.edu.cn/centos-cloud/centos" ;;
|
||||||
almalinux) ci_mirror="https://mirror.nju.edu.cn/almalinux/$releasever/cloud/$basearch/images" ;;
|
almalinux) ci_mirror="https://mirror.nju.edu.cn/almalinux/$releasever/cloud/$elarch/images" ;;
|
||||||
rocky) ci_mirror="https://mirror.nju.edu.cn/rocky/$releasever/images/$basearch" ;;
|
rocky) ci_mirror="https://mirror.nju.edu.cn/rocky/$releasever/images/$elarch" ;;
|
||||||
fedora) ci_mirror="https://mirror.nju.edu.cn/fedora/releases/$releasever/Cloud/$basearch/images" ;;
|
fedora) ci_mirror="https://mirror.nju.edu.cn/fedora/releases/$releasever/Cloud/$elarch/images" ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
case $distro in
|
case $distro in
|
||||||
centos) ci_mirror="https://cloud.centos.org/centos" ;;
|
centos) ci_mirror="https://cloud.centos.org/centos" ;;
|
||||||
almalinux) ci_mirror="https://repo.almalinux.org/almalinux/$releasever/cloud/$basearch/images" ;;
|
almalinux) ci_mirror="https://repo.almalinux.org/almalinux/$releasever/cloud/$elarch/images" ;;
|
||||||
rocky) ci_mirror="https://download.rockylinux.org/pub/rocky/$releasever/images/$basearch" ;;
|
rocky) ci_mirror="https://download.rockylinux.org/pub/rocky/$releasever/images/$elarch" ;;
|
||||||
fedora) ci_mirror="https://d2lzkl7pfhq30w.cloudfront.net/pub/fedora/linux/releases/$releasever/Cloud/$basearch/images" ;;
|
fedora) ci_mirror="https://d2lzkl7pfhq30w.cloudfront.net/pub/fedora/linux/releases/$releasever/Cloud/$elarch/images" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
case $distro in
|
case $distro in
|
||||||
@ -1611,20 +1622,20 @@ Continue with DD?
|
|||||||
7)
|
7)
|
||||||
# CentOS-7-aarch64-GenericCloud.qcow2c 是旧版本
|
# CentOS-7-aarch64-GenericCloud.qcow2c 是旧版本
|
||||||
ver=-2211
|
ver=-2211
|
||||||
ci_image=$ci_mirror/$releasever/images/CentOS-$releasever-$basearch-GenericCloud$ver.qcow2c
|
ci_image=$ci_mirror/$releasever/images/CentOS-$releasever-$elarch-GenericCloud$ver.qcow2c
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# 有 bios 和 efi 镜像
|
# 有 bios 和 efi 镜像
|
||||||
# https://cloud.centos.org/centos/10-stream/x86_64/images/CentOS-Stream-GenericCloud-10-latest.x86_64.qcow2
|
# https://cloud.centos.org/centos/10-stream/x86_64/images/CentOS-Stream-GenericCloud-10-latest.x86_64.qcow2
|
||||||
# https://cloud.centos.org/centos/10-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-10-latest.x86_64.qcow2
|
# https://cloud.centos.org/centos/10-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-10-latest.x86_64.qcow2
|
||||||
[ "$basearch" = x86_64 ] &&
|
[ "$elarch" = x86_64 ] &&
|
||||||
ci_image=$ci_mirror/$releasever-stream/$basearch/images/CentOS-Stream-GenericCloud-x86_64-$releasever-latest.$basearch.qcow2 ||
|
ci_image=$ci_mirror/$releasever-stream/$elarch/images/CentOS-Stream-GenericCloud-x86_64-$releasever-latest.$elarch.qcow2 ||
|
||||||
ci_image=$ci_mirror/$releasever-stream/$basearch/images/CentOS-Stream-GenericCloud-$releasever-latest.$basearch.qcow2
|
ci_image=$ci_mirror/$releasever-stream/$elarch/images/CentOS-Stream-GenericCloud-$releasever-latest.$elarch.qcow2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
almalinux) ci_image=$ci_mirror/AlmaLinux-$releasever-GenericCloud-latest.$basearch.qcow2 ;;
|
almalinux) ci_image=$ci_mirror/AlmaLinux-$releasever-GenericCloud-latest.$elarch.qcow2 ;;
|
||||||
rocky) ci_image=$ci_mirror/Rocky-$releasever-GenericCloud-Base.latest.$basearch.qcow2 ;;
|
rocky) ci_image=$ci_mirror/Rocky-$releasever-GenericCloud-Base.latest.$elarch.qcow2 ;;
|
||||||
fedora)
|
fedora)
|
||||||
# 不加 / 会跳转到 https://dl.fedoraproject.org,纯 ipv6 无法访问
|
# 不加 / 会跳转到 https://dl.fedoraproject.org,纯 ipv6 无法访问
|
||||||
# curl -L -6 https://d2lzkl7pfhq30w.cloudfront.net/pub/fedora/linux/releases/42/Cloud/x86_64/images
|
# curl -L -6 https://d2lzkl7pfhq30w.cloudfront.net/pub/fedora/linux/releases/42/Cloud/x86_64/images
|
||||||
@ -1639,14 +1650,14 @@ Continue with DD?
|
|||||||
else
|
else
|
||||||
# 传统安装
|
# 传统安装
|
||||||
case $distro in
|
case $distro in
|
||||||
centos) mirrorlist="https://mirrors.centos.org/mirrorlist?repo=centos-baseos-$releasever-stream&arch=$basearch" ;;
|
centos) mirrorlist="https://mirrors.centos.org/mirrorlist?repo=centos-baseos-$releasever-stream&arch=$elarch" ;;
|
||||||
almalinux) mirrorlist="https://mirrors.almalinux.org/mirrorlist/$releasever/baseos" ;;
|
almalinux) mirrorlist="https://mirrors.almalinux.org/mirrorlist/$releasever/baseos" ;;
|
||||||
rocky) mirrorlist="https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever" ;;
|
rocky) mirrorlist="https://mirrors.rockylinux.org/mirrorlist?arch=$elarch&repo=BaseOS-$releasever" ;;
|
||||||
fedora) mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?arch=$basearch&repo=fedora-$releasever" ;;
|
fedora) mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?arch=$elarch&repo=fedora-$releasever" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# rocky/centos9 需要删除第一行注释, almalinux 需要替换$basearch
|
# rocky/centos9 需要删除第一行注释, almalinux 需要替换链接里面的 $basearch
|
||||||
for cur_mirror in $(curl -L $mirrorlist | sed "/^#/d" | sed "s,\$basearch,$basearch,"); do
|
for cur_mirror in $(curl -L $mirrorlist | sed "/^#/d" | sed "s,\$basearch,$elarch,"); do
|
||||||
host=$(get_host_by_url $cur_mirror)
|
host=$(get_host_by_url $cur_mirror)
|
||||||
if is_host_has_ipv4_and_ipv6 $host &&
|
if is_host_has_ipv4_and_ipv6 $host &&
|
||||||
test_url_grace ${cur_mirror}images/pxeboot/vmlinuz; then
|
test_url_grace ${cur_mirror}images/pxeboot/vmlinuz; then
|
||||||
@ -1812,11 +1823,11 @@ verify_os_name() {
|
|||||||
'centos 7|9|10' \
|
'centos 7|9|10' \
|
||||||
'anolis 7|8|23' \
|
'anolis 7|8|23' \
|
||||||
'opencloudos 8|9|23' \
|
'opencloudos 8|9|23' \
|
||||||
'almalinux 8|9' \
|
'almalinux 8|9|10' \
|
||||||
'rocky 8|9' \
|
'rocky 8|9' \
|
||||||
'oracle 8|9' \
|
'oracle 8|9' \
|
||||||
'fedora 41|42' \
|
'fedora 41|42' \
|
||||||
'nixos 24.11' \
|
'nixos 25.05' \
|
||||||
'debian 9|10|11|12' \
|
'debian 9|10|11|12' \
|
||||||
'opensuse 15.6|16.0|tumbleweed' \
|
'opensuse 15.6|16.0|tumbleweed' \
|
||||||
'alpine 3.18|3.19|3.20|3.21' \
|
'alpine 3.18|3.19|3.20|3.21' \
|
||||||
|
1
trans.sh
1
trans.sh
@ -3207,6 +3207,7 @@ remove_cloud_init() {
|
|||||||
case $pkg_mgr in
|
case $pkg_mgr in
|
||||||
dnf | yum)
|
dnf | yum)
|
||||||
chroot $os_dir $pkg_mgr remove -y cloud-init
|
chroot $os_dir $pkg_mgr remove -y cloud-init
|
||||||
|
rm -f $os_dir/etc/cloud/cloud.cfg.rpmsave
|
||||||
;;
|
;;
|
||||||
zypper)
|
zypper)
|
||||||
# 加上 -u 才会删除依赖
|
# 加上 -u 才会删除依赖
|
||||||
|
Loading…
x
Reference in New Issue
Block a user