alpine: 不重置 repo

This commit is contained in:
bin456789 2023-10-31 22:33:59 +08:00
parent d96068ff94
commit 9d5726b28c
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -591,8 +591,11 @@ EOF
fi
# 重置为官方仓库配置
true >/etc/apk/repositories
setup-apkrepos -1
# 国内机可能无法访问mirror列表而报错
if false; then
true >/etc/apk/repositories
setup-apkrepos -1
fi
# 安装到硬盘
# alpine默认使用 syslinux (efi 环境除外),这里强制使用 grub方便用脚本再次重装