redhat: 不需要输入版本号

This commit is contained in:
bin456789 2025-05-16 19:06:09 +08:00
parent 14ef2c8269
commit e3ed8703ab
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B
3 changed files with 8 additions and 10 deletions

View File

@ -128,7 +128,6 @@ certutil -urlcache -f -split https://cnb.cool/bin456789/reinstall/-/git/raw/main
bash reinstall.sh anolis 7|8|23 bash reinstall.sh anolis 7|8|23
opencloudos 8|9|23 opencloudos 8|9|23
rocky 8|9 rocky 8|9
redhat 8|9 --img="http://xxx.com/xxx.qcow2"
oracle 8|9 oracle 8|9
almalinux 8|9 almalinux 8|9
centos 9|10 centos 9|10
@ -144,6 +143,7 @@ bash reinstall.sh anolis 7|8|23
gentoo gentoo
aosc aosc
fnos fnos
redhat --img="http://access.cdn.redhat.com/xxx.qcow2"
``` ```
#### Optional Parameters #### Optional Parameters

View File

@ -128,7 +128,6 @@ certutil -urlcache -f -split https://cnb.cool/bin456789/reinstall/-/git/raw/main
bash reinstall.sh anolis 7|8|23 bash reinstall.sh anolis 7|8|23
opencloudos 8|9|23 opencloudos 8|9|23
rocky 8|9 rocky 8|9
redhat 8|9 --img="http://xxx.com/xxx.qcow2"
oracle 8|9 oracle 8|9
almalinux 8|9 almalinux 8|9
centos 9|10 centos 9|10
@ -144,6 +143,7 @@ bash reinstall.sh anolis 7|8|23
gentoo gentoo
aosc aosc
fnos fnos
redhat --img="http://access.cdn.redhat.com/xxx.qcow2"
``` ```
#### 可选参数 #### 可选参数

View File

@ -48,7 +48,6 @@ usage_and_exit() {
Usage: $reinstall_____ anolis 7|8|23 Usage: $reinstall_____ anolis 7|8|23
opencloudos 8|9|23 opencloudos 8|9|23
rocky 8|9 rocky 8|9
redhat 8|9 --img="http://xxx.com/xxx.qcow2"
oracle 8|9 oracle 8|9
almalinux 8|9 almalinux 8|9
centos 9|10 centos 9|10
@ -64,6 +63,7 @@ Usage: $reinstall_____ anolis 7|8|23
gentoo gentoo
aosc aosc
fnos fnos
redhat --img="http://access.cdn.redhat.com/xxx.qcow2"
dd --img="http://xxx.com/yyy.zzz" (raw image stores in raw/vhd/tar/gz/xz/zst) dd --img="http://xxx.com/yyy.zzz" (raw image stores in raw/vhd/tar/gz/xz/zst)
windows --image-name="windows xxx yyy" --lang=xx-yy windows --image-name="windows xxx yyy" --lang=xx-yy
windows --image-name="windows xxx yyy" --iso="http://xxx.com/xxx.iso" windows --image-name="windows xxx yyy" --iso="http://xxx.com/xxx.iso"
@ -1677,13 +1677,11 @@ Continue with DD?
} }
setos_redhat() { setos_redhat() {
# el 10 需要 x86-64-v3
if [ "$basearch" = x86_64 ] && [ "$releasever" -ge 10 ]; then
assert_cpu_supports_x86_64_v3
fi
if is_use_cloud_image; then if is_use_cloud_image; then
# ci # el 10 需要 x86-64-v3
if [ "$basearch" = x86_64 ] && [[ "$img" = *rhel-10* ]]; then
assert_cpu_supports_x86_64_v3
fi
eval "${step}_img='$img'" eval "${step}_img='$img'"
else else
: :
@ -1798,7 +1796,6 @@ verify_os_name() {
'opencloudos 8|9|23' \ 'opencloudos 8|9|23' \
'almalinux 8|9' \ 'almalinux 8|9' \
'rocky 8|9' \ 'rocky 8|9' \
'redhat 8|9' \
'oracle 8|9' \ 'oracle 8|9' \
'fedora 41|42' \ 'fedora 41|42' \
'nixos 24.11' \ 'nixos 24.11' \
@ -1807,6 +1804,7 @@ verify_os_name() {
'alpine 3.18|3.19|3.20|3.21' \ 'alpine 3.18|3.19|3.20|3.21' \
'openeuler 20.03|22.03|24.03|25.03' \ 'openeuler 20.03|22.03|24.03|25.03' \
'ubuntu 16.04|18.04|20.04|22.04|24.04|25.04' \ 'ubuntu 16.04|18.04|20.04|22.04|24.04|25.04' \
'redhat' \
'kali' \ 'kali' \
'arch' \ 'arch' \
'gentoo' \ 'gentoo' \