I wanted to find whether I am inside a
chroot as part of a script where I'm not allowed to mount
/proc if it is not (unlike the case in How do I tell I'm running in a chroot?). How to find whether I'm in a
chroot even if
/proc is not mounted?
I do have root access. This is on Fedora. The solution should not depend on the filesystems used.