修改Mount.sh

This commit is contained in:
gfdgd xi 2023-03-18 13:07:40 +08:00
parent 862e965165
commit f497d48188
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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}