Please forgive my ignorance... I have a number of Debian Chroot environments for testing software. They were necessary due to our package maintainer testing us under the same.
My test scripts use Valgrind, but Valgrind fails with the error:
valgrind: warning (non-fatal): readlink("/proc/self/exe") failed
I know what the issue is (/proc is not mounted), and I know how to solve it (mount -t proc none proc/). However, I don't know where to put the command so it runs automatically whenever I chroot.
Simply adding the following to the Chroot's fstab resulted in a Valgrind error when attempting to use the tool:
proc<TAB> none<TAB> /proc
And
proc<TAB> /proc
Where, exactly, do we put the command "mount -t proc ..." in a Debian Chroot environment?
Here's a very related question: mount dev, proc, sys in a chroot environment?. The best I can tell, folks answer with what to do, and not where to do it. I'm trying to figure out where to do it (besides manually on the command line).