mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-31 19:08:07 +08:00
redhat: 自动获取 fedora 云镜像的小版本号
This commit is contained in:
parent
ff553e1170
commit
8dc14c44ca
@ -385,17 +385,14 @@ setos() {
|
||||
ci_image=$ci_mirror/AlmaLinux-$releasever-GenericCloud$alma_efi-latest.$basearch.qcow2
|
||||
;;
|
||||
"rocky") ci_image=$ci_mirror/Rocky-$releasever-GenericCloud-Base.latest.$basearch.qcow2 ;;
|
||||
# TODO: 小版本号
|
||||
"fedora")
|
||||
ci_image=$ci_mirror/Fedora-Cloud-Base-$releasever-1.6.$basearch.raw.xz
|
||||
ci_image_type=xz
|
||||
filename=$(curl -L $ci_mirror | grep -oP "Fedora-Cloud-Base-$releasever.*?$basearch" | head -1)
|
||||
# ci_image=$ci_mirror/$filename.raw.xz
|
||||
ci_image=$ci_mirror/$filename.qcow2
|
||||
;;
|
||||
esac
|
||||
|
||||
eval ${step}_img=${ci_image}
|
||||
if [ -n "$ci_image_type" ]; then
|
||||
eval ${step}_img_type=${ci_image_type}
|
||||
fi
|
||||
else
|
||||
# 传统安装
|
||||
if [ "$localtest" = 1 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user