From 3747c2b6cfefffd020345fb3d9aa254eed72e619 Mon Sep 17 00:00:00 2001 From: Rayae Date: Wed, 4 Sep 2024 12:15:57 +0800 Subject: [PATCH] Update create-rootfs.sh --- create-rootfs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create-rootfs.sh b/create-rootfs.sh index 0ab4d49..719fb82 100755 --- a/create-rootfs.sh +++ b/create-rootfs.sh @@ -2,6 +2,7 @@ # 默认镜像 default_mirror="https://mirror.rackspace.com" +default_mirror2="https://mirrors.ustc.edu.cn" rootfs=/mnt/rootfs root_password="arch1234" @@ -62,7 +63,7 @@ rm $rootfs/etc/machine-id && touch $rootfs/etc/machine-id arch-chroot $rootfs bash -c 'pacman-key --init && pacman-key --populate && pacman -Sy --noconfirm archlinux-keyring' # archlinuxcn 软件源 -echo -e "[archlinuxcn]\nServer = $default_mirror/archlinuxcn/\$arch\n" >> $rootfs/etc/pacman.conf +echo -e "[archlinuxcn]\nServer = $default_mirror2/archlinuxcn/\$arch\n" >> $rootfs/etc/pacman.conf arch-chroot $rootfs bash -c 'pacman-key --lsign-key "farseerfc@archlinux.org" && pacman -Syy archlinuxcn-keyring --noconfirm' @@ -123,4 +124,3 @@ sha256sum "$output" > "$output".sha256sum du -h "$output" chmod 0777 "$output" chmod 0777 "$output".sha256sum -