mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
debian: 添加国内云镜像源
This commit is contained in:
parent
dcc5ae7131
commit
2385a43844
13
reinstall.sh
13
reinstall.sh
@ -234,18 +234,23 @@ setos() {
|
|||||||
|
|
||||||
setos_debian() {
|
setos_debian() {
|
||||||
case "$releasever" in
|
case "$releasever" in
|
||||||
12) codename=bookworm ;;
|
|
||||||
11) codename=bullseye ;;
|
|
||||||
10) codename=buster ;;
|
10) codename=buster ;;
|
||||||
|
11) codename=bullseye ;;
|
||||||
|
12) codename=bookworm ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if is_use_cloud_image; then
|
if is_use_cloud_image; then
|
||||||
# cloud image
|
# 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
|
is_virt && ci_type=genericcloud || ci_type=generic
|
||||||
# 甲骨文 debian 10 amd64 genericcloud vnc 没有显示
|
# 甲骨文 debian 10 amd64 genericcloud vnc 没有显示
|
||||||
[ "$releasever" -eq 10 ] && [ "$basearch_alt" = amd64 ] && ci_type=generic
|
[ "$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
|
else
|
||||||
# 传统安装
|
# 传统安装
|
||||||
if [ "$localtest" = 1 ]; then
|
if [ "$localtest" = 1 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user