mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 02:52:03 +08:00
更新Mount
This commit is contained in:
7
Mount.sh
7
Mount.sh
@@ -43,5 +43,12 @@ else
|
||||
fi
|
||||
# 挂载此内容以可以跨架构运行程序
|
||||
mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
|
||||
# 判断是否有 Root 权限
|
||||
cat etc/sudoers | grep "$2"
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "$2 ALL=(ALL:ALL) ALL" >> etc/sudoers
|
||||
fi
|
||||
# 写入 DNS
|
||||
cat /etc/resolv.conf > etc/resolv.conf
|
||||
# 如果参数 3 存在
|
||||
"$programPath/pardus-chroot" "--userspec=$2:$2" . env "HOME=/home/$2" ${@:3}
|
||||
|
||||
Reference in New Issue
Block a user