arch: 运行 pacman-key

This commit is contained in:
bin456789 2023-12-22 23:52:47 +08:00
parent 26811638f5
commit 730e97c8a7
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -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
# 挂载伪文件系统