Is there a way to automatically unmount a filesystem when doing 'exit' command from a chroot?
$ mount --bind /proc proc
$ chroot .
~ exit #now in chroot and call exit.
$ # back to main device.
I would like proc to be unmounted automatically at exit.
Thank you!