diff --git a/trans.sh b/trans.sh index 3765219..274e52d 100644 --- a/trans.sh +++ b/trans.sh @@ -1221,6 +1221,16 @@ EOF rm -f $os_dir/etc/resolv.conf fi + # arch + if [ -f $os_dir/etc/arch-release ]; then + rm $os_dir/etc/resolv.conf + cp /etc/resolv.conf $os_dir/etc/resolv.conf + mount_pseudo_fs $os_dir + chroot $os_dir pacman-key --init + chroot $os_dir pacman-key --populate + rm $os_dir/etc/resolv.conf + fi + # gentoo if [ -f $os_dir/etc/gentoo-release ]; then # 挂载伪文件系统