From 8dc14c44caf1e3867cd08e95767a57585fd90470 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Tue, 1 Aug 2023 22:30:03 +0800 Subject: [PATCH] =?UTF-8?q?redhat:=20=E8=87=AA=E5=8A=A8=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=20fedora=20=E4=BA=91=E9=95=9C=E5=83=8F=E7=9A=84=E5=B0=8F?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index f141182..2d392fd 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -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