core: 更改 grub 下载源

fixes #168
This commit is contained in:
bin456789 2024-10-01 20:52:50 +08:00
parent 4d1321b348
commit 6a5ab5bc7c
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -2196,7 +2196,7 @@ install_grub_win() {
# ftpmirror.gnu.org 是 geoip 重定向,不是 cdn
# 有可能重定义到一个拉黑了部分 IP 的服务器
is_in_china && grub_url=https://mirror.nju.edu.cn/gnu/grub/grub-$grub_ver-for-windows.zip ||
grub_url=https://ftpmirror.gnu.org/gnu/grub/grub-$grub_ver-for-windows.zip
grub_url=https://mirrors.kernel.org/gnu/grub/grub-$grub_ver-for-windows.zip
curl -Lo $tmp/grub.zip $grub_url
# unzip -qo $tmp/grub.zip
7z x $tmp/grub.zip -o$tmp -r -y -xr!i386-efi -xr!locale -xr!themes -bso0