1 Star 0 Fork 26

laranlan/Wine 运行器

forked from gfdgd xi/Wine 运行器 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
MountWithoutHome.sh 795 Bytes
一键复制 编辑 原始数据 按行查看 历史
gfdgd xi 提交于 2023-03-18 13:07 . 修改Mount.sh
#!/bin/bash
if [ ` whoami ` != "root" ]; then
echo "Only root can run me"
exit 1
fi
if [ ! -d "$1" ]; then
echo "路径不存在!"
exit 1
fi
programPath=`dirname $0`
echo $0
echo $1
echo $2
echo $3
# 挂载必备目录
cd "$1"
# 拷贝 Qemu Static
cp -r /usr/bin/qemu-*-static ./usr/bin
# 挂载目录
# 这里将由 pardus-chroot 处理
#mount --bind /dev ./dev
#mount --bind /dev/pts ./dev/pts
#mount -t proc /proc ./proc
#mount --bind /etc/resolv.conf ./etc/resolv.conf
#mount -t sysfs /sys ./sys
#mount --bind /dev/shm ./dev/shm
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}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/ChaoYouAi/deep-wine-runner.git
git@gitee.com:ChaoYouAi/deep-wine-runner.git
ChaoYouAi
deep-wine-runner
Wine 运行器
main

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385