基本完成第一版

This commit is contained in:
2023-06-28 16:22:31 +08:00
parent b853640a03
commit 779e303147
32 changed files with 503 additions and 27 deletions

12
deb/usr/bin/gx-env-mount-root Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
if [[ `whoami` != "root" ]]; then
echo 请使用 root 权限运行
exit 1
fi
xhost +
chrootEnvPath=/opt/new-system-env
rm $chrootEnvPath/etc/resolv.conf
cp /etc/resolv.conf $chrootEnvPath/etc/resolv.conf
#mount --bind /home $chrootEnvPath/home
#mount --bind /root $chrootEnvPath/root