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