Setting up chroot logic

This commit is contained in:
2020-05-01 20:10:29 -05:00
parent 069ef7b55a
commit 6071fba20e
5 changed files with 45 additions and 19 deletions

View File

@@ -9,6 +9,11 @@
# Debootstrap process
function main() {
ansr=$(confirm_dialouge "Launch Xephyr preview window?\n Resolution: ${RES} Window ID: ${ID}")
if [[ $ansr -eq 0 ]]; then
Xephyr -resizeable -screen "${RES}" "${ID}" &
fi
sudo mount --bind /dev "${CHROOT_PTH}"/dev
sudo cp /etc/hosts "${CHROOT_PTH}"/etc/hosts
@@ -17,6 +22,9 @@ function main() {
sudo chroot "${CHROOT_PTH}"
# cleanup
sudo umount "${CHROOT_PTH}"/dev
# ---- OLD SETUP ---- #
# ## Set Xephyr and set chrooting mounts