mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-16 20:11:36 +08:00
修改Mount.sh
This commit is contained in:
1
Mount.sh
1
Mount.sh
@@ -43,6 +43,7 @@ else
|
||||
fi
|
||||
# 挂载此内容以可以跨架构运行程序
|
||||
mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
|
||||
systemctl restart binfmt-support.service
|
||||
# 判断是否有 Root 权限
|
||||
cat etc/sudoers | grep "$2"
|
||||
if [[ $? != 0 ]]; then
|
||||
|
||||
@@ -28,5 +28,6 @@ chmod 777 -R root tmp
|
||||
xhost +
|
||||
# 挂载此内容以可以跨架构运行程序
|
||||
mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
|
||||
systemctl restart binfmt-support.service
|
||||
# 如果参数 3 存在
|
||||
"$programPath/pardus-chroot" . ${@:3}
|
||||
|
||||
Reference in New Issue
Block a user