Setting up chroot logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user