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
|
ci_image=$ci_mirror/AlmaLinux-$releasever-GenericCloud$alma_efi-latest.$basearch.qcow2
|
||||||
;;
|
;;
|
||||||
"rocky") ci_image=$ci_mirror/Rocky-$releasever-GenericCloud-Base.latest.$basearch.qcow2 ;;
|
"rocky") ci_image=$ci_mirror/Rocky-$releasever-GenericCloud-Base.latest.$basearch.qcow2 ;;
|
||||||
# TODO: 小版本号
|
|
||||||
"fedora")
|
"fedora")
|
||||||
ci_image=$ci_mirror/Fedora-Cloud-Base-$releasever-1.6.$basearch.raw.xz
|
filename=$(curl -L $ci_mirror | grep -oP "Fedora-Cloud-Base-$releasever.*?$basearch" | head -1)
|
||||||
ci_image_type=xz
|
# ci_image=$ci_mirror/$filename.raw.xz
|
||||||
|
ci_image=$ci_mirror/$filename.qcow2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
eval ${step}_img=${ci_image}
|
eval ${step}_img=${ci_image}
|
||||||
if [ -n "$ci_image_type" ]; then
|
|
||||||
eval ${step}_img_type=${ci_image_type}
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
# 传统安装
|
# 传统安装
|
||||||
if [ "$localtest" = 1 ]; then
|
if [ "$localtest" = 1 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user