When I source a file from /etc/rc like this:
the variables defined in /etc/somefile do not persist after /etc/rc has exited. But when I source /etc/profile, they do persist. So in order to define additional variables, I have to append those lines to /etc/profile and source it again. I really don't want to do this, because I want to change the root filesystem to be read only. The fact that variables are persistent only if they are sourced from /etc/profile, is this a bug or is this by design?