3 if [ ! "x`whoami`" = "xroot" ]; then
4 echo "$0: you must be root to setup the chroot environment"
8 if [[ ! -d
"$1" ]]; then
9 echo "Usage: unchroot.sh path-to-chroot"
13 umount
$1/proc
&& umount
$1/sys
&& umount
$1/root
/openitg-dev
&& echo "It is now safe to rm -rf $1" && exit 0;
16 Error unmounting one of the mounts. You should manually run
:
20 umount
$1/root
/openitg-dev
22 Only after those are safely unmounted can you remove your chroot.