deepin15-ubuntuenv/gx-env-mount-root
2023-06-28 16:22:31 +08:00

12 lines
304 B
Bash
Executable File

#!/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