修复无法chroot的问题

This commit is contained in:
2023-03-03 22:33:33 +08:00
parent f4d8139ed8
commit 2d399c57ba
2 changed files with 4 additions and 3 deletions

View File

@@ -51,4 +51,5 @@ fi
# 写入 DNS
cat /etc/resolv.conf > etc/resolv.conf
# 如果参数 3 存在
"$programPath/pardus-chroot" --userspec=$2:$2 . env "HOME=/home/$2" ${@:3}
"$programPath/pardus-chroot" . #env "HOME=/home/$2" ${@:3}
chroot "--userspec=$2:$2" . env "HOME=/home/$2" ${@:3}