arch: 运行 pacman-key
This commit is contained in:
parent
26811638f5
commit
730e97c8a7
10
trans.sh
10
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
|
||||
# 挂载伪文件系统
|
||||
|
Loading…
Reference in New Issue
Block a user