Skip to content

Commit

Permalink
Update create-rootfs.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rayae authored Sep 4, 2024
1 parent b939590 commit 3747c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions create-rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# 默认镜像
default_mirror="https://mirror.rackspace.com"
default_mirror2="https://mirrors.ustc.edu.cn"

rootfs=/mnt/rootfs
root_password="arch1234"
Expand Down Expand Up @@ -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 "[email protected]" &&
pacman -Syy archlinuxcn-keyring --noconfirm'

Expand Down Expand Up @@ -123,4 +124,3 @@ sha256sum "$output" > "$output".sha256sum
du -h "$output"
chmod 0777 "$output"
chmod 0777 "$output".sha256sum

0 comments on commit 3747c2b

Please sign in to comment.