mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-31 10:58:06 +08:00
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
|
rm -f $os_dir/etc/resolv.conf
|
||||||
fi
|
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
|
# gentoo
|
||||||
if [ -f $os_dir/etc/gentoo-release ]; then
|
if [ -f $os_dir/etc/gentoo-release ]; then
|
||||||
# 挂载伪文件系统
|
# 挂载伪文件系统
|
||||||
|
Loading…
x
Reference in New Issue
Block a user