From 4e4d551c128724f6af94b50ff3b16432a06187c0 Mon Sep 17 00:00:00 2001 From: Rayae Date: Wed, 4 Sep 2024 11:52:15 +0800 Subject: [PATCH] Update create-rootfs.sh comment china mirror --- create-rootfs.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/create-rootfs.sh b/create-rootfs.sh index a521b36..7367116 100755 --- a/create-rootfs.sh +++ b/create-rootfs.sh @@ -1,7 +1,7 @@ #!/bin/bash # 默认镜像 -default_mirror="https://mirror.leaseweb.net" +#default_mirror="https://mirror.leaseweb.net" rootfs=/mnt/rootfs root_password="arch1234" @@ -35,13 +35,13 @@ set -e # set -x # 初始化 Pacman -echo "Server = $default_mirror/archlinux/\$repo/os/\$arch" >| /etc/pacman.d/mirrorlist +#echo "Server = $default_mirror/archlinux/\$repo/os/\$arch" >| /etc/pacman.d/mirrorlist pacman-key --init && pacman-key --populate && pacman -Sy --noconfirm archlinux-keyring && pacman -Syy --noconfirm # 安装环境需要的基础软件 pacman -S --noconfirm base-devel arch-install-scripts wget curl zip unzip vim sed pacman-contrib openssl -# 选取最快的 6 个软件镜像 -curl -s "https://archlinux.org/mirrorlist/?country=CN&protocol=https&use_mirror_status=on)" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 6 - | sudo tee /etc/pacman.d/mirrorlist +## 选取最快的 6 个软件镜像 +#curl -s "https://archlinux.org/mirrorlist/?country=CN&protocol=https&use_mirror_status=on)" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 6 - | sudo tee /etc/pacman.d/mirrorlist pacman -Syy --noconfirm # 创建 rootfs