From 730e97c8a7db3370cd65da86571d95d82d36e14d Mon Sep 17 00:00:00 2001 From: bin456789 Date: Fri, 22 Dec 2023 23:52:47 +0800 Subject: [PATCH] =?UTF-8?q?arch:=20=E8=BF=90=E8=A1=8C=20pacman-key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 # 挂载伪文件系统