From 990a8d485578477106a9769c1e6fe30b1b5806a7 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sat, 22 Jul 2023 21:45:47 +0800 Subject: [PATCH] =?UTF-8?q?debian:=20=E4=BD=BF=E7=94=A8=20cloudflare=20?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E5=9B=BD=E5=86=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian.cfg b/debian.cfg index 55f4460..700ff6d 100644 --- a/debian.cfg +++ b/debian.cfg @@ -1,3 +1,4 @@ +# https://www.debian.org/releases/stable/amd64/apbs04.zh-cn.html # B.4.1. 本地化 d-i debian-installer/locale string en_US d-i keyboard-configuration/xkb-keymap select us @@ -59,7 +60,7 @@ d-i finish-install/reboot_in_progress note # B.5.1. 安装过程中运行用户命令 d-i preseed/early_command string \ - wget https://geoip.fedoraproject.org/city -O - | grep -w CHN && hostname=ftp.cn.debian.org || hostname=deb.debian.org; \ + wget http://www.cloudflare.com/cdn-cgi/trace -O- | grep -x 'loc=CN' && hostname=ftp.cn.debian.org || hostname=deb.debian.org; \ debconf-set mirror/http/hostname $hostname d-i partman/early_command string \