Here is a bash script I wrote to enter and exit a chrooted environment on my Gentoo. #!/bin/bash # define here the chroot jail path CHROOT=/home/chroot-jail start() { echo “Mounting chroot dirs” # This allows DNS lookups via your system’s networking cp -L /etc/resolv.conf ${CHROOT}/etc/ mount -o bind /proc ${CHROOT}/proc mount -o bind /proc/bus/usb ${CHROOT}/proc/bus/usb […]