From 2385a43844aa1ad47d4327a76521bc5590472f4f Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 10 Sep 2023 22:23:03 +0800 Subject: [PATCH] =?UTF-8?q?debian:=20=E6=B7=BB=E5=8A=A0=E5=9B=BD=E5=86=85?= =?UTF-8?q?=E4=BA=91=E9=95=9C=E5=83=8F=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index 6303f7e..cf65094 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -234,18 +234,23 @@ setos() { setos_debian() { case "$releasever" in - 12) codename=bookworm ;; - 11) codename=bullseye ;; 10) codename=buster ;; + 11) codename=bullseye ;; + 12) codename=bookworm ;; esac if is_use_cloud_image; then # cloud image - ci_mirror=https://cloud.debian.org/images/cloud + if is_in_china; then + ci_mirror=https://mirror.nju.edu.cn/debian-cdimage + else + ci_mirror=https://cdimage.debian.org/images + fi + is_virt && ci_type=genericcloud || ci_type=generic # 甲骨文 debian 10 amd64 genericcloud vnc 没有显示 [ "$releasever" -eq 10 ] && [ "$basearch_alt" = amd64 ] && ci_type=generic - eval ${step}_img=$ci_mirror/$codename/latest/debian-$releasever-$ci_type-$basearch_alt.qcow2 + eval ${step}_img=$ci_mirror/cloud/$codename/latest/debian-$releasever-$ci_type-$basearch_alt.qcow2 else # 传统安装 if [ "$localtest" = 1 ]; then