When entering chroot, change to the current user automatically.
Mount "/proc" in chroot as well.
Copy "resolv.conf" instead of linking.

It may itself be a symlink, and on a different file system. Also,
resolve the other paths in case they're links themselves.
Pre-install `sudo` in chroot.