mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
parent
4b9f8d9bd6
commit
390202e98e
@ -999,9 +999,7 @@ setos() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if is_in_china; then
|
if is_in_china; then
|
||||||
# 部分源没有 firmware
|
cdimage_mirror=https://mirror.nju.edu.cn/debian-cdimage
|
||||||
# https://mirror.nju.edu.cn/debian-cdimage/firmware/
|
|
||||||
cdimage_mirror=https://mirror.sjtu.edu.cn/debian-cdimage
|
|
||||||
else
|
else
|
||||||
cdimage_mirror=https://cdimage.debian.org/images # 在瑞典,不是 cdn
|
cdimage_mirror=https://cdimage.debian.org/images # 在瑞典,不是 cdn
|
||||||
# cloud.debian.org 同样在瑞典,不是 cdn
|
# cloud.debian.org 同样在瑞典,不是 cdn
|
||||||
@ -1047,7 +1045,7 @@ Continue?
|
|||||||
if is_in_china; then
|
if is_in_china; then
|
||||||
# ftp.cn.debian.org 不在国内还严重丢包
|
# ftp.cn.debian.org 不在国内还严重丢包
|
||||||
# https://www.itdog.cn/ping/ftp.cn.debian.org
|
# https://www.itdog.cn/ping/ftp.cn.debian.org
|
||||||
hostname=mirror.sjtu.edu.cn
|
hostname=mirror.nju.edu.cn
|
||||||
else
|
else
|
||||||
hostname=deb.debian.org # fastly
|
hostname=deb.debian.org # fastly
|
||||||
fi
|
fi
|
||||||
@ -1064,7 +1062,7 @@ Continue?
|
|||||||
eval ${step}_vmlinuz=https://$initrd_mirror/$initrd_dir/linux
|
eval ${step}_vmlinuz=https://$initrd_mirror/$initrd_dir/linux
|
||||||
eval ${step}_initrd=https://$initrd_mirror/$initrd_dir/initrd.gz
|
eval ${step}_initrd=https://$initrd_mirror/$initrd_dir/initrd.gz
|
||||||
eval ${step}_ks=$confhome/debian.cfg
|
eval ${step}_ks=$confhome/debian.cfg
|
||||||
eval ${step}_firmware=$cdimage_mirror/firmware/$codename/current/firmware.cpio.gz
|
eval ${step}_firmware=$cdimage_mirror/unofficial/non-free/firmware/$codename/current/firmware.cpio.gz
|
||||||
eval ${step}_hostname=$hostname
|
eval ${step}_hostname=$hostname
|
||||||
eval ${step}_directory=$directory
|
eval ${step}_directory=$directory
|
||||||
eval ${step}_codename=$codename
|
eval ${step}_codename=$codename
|
||||||
|
Loading…
x
Reference in New Issue
Block a user