Why does rc.d/tmp require 'mountcritremote'?
Vitaly Magerya
vmagerya at gmail.com
Thu Jan 16 17:35:33 UTC 2014
Hi, folks. In one particular setup I use tmpmfs, but I also have
links from /var into /tmp, so I need rc.d/tmp to be executed
before rc.d/var (or at least, before rc.d/SERVERS). This however,
appears to be impossible: rc.d/tmp requires 'mountcritremote',
which then requires 'var' through a series of dependencies.
So my question is: why does rc.d/tmp require 'mountcritremote'?
Can we change it to 'mountcritlocal' or some such?
I've looked into commit logs, and this requirement was introduced
in revision 153028 [1]; the commit log says: "Brooks pointed out
a case where tmp needs to be run after mountcritremote, so force
it the other way instead.". Anyone knows what case is this?
For the reference, rc.d/var, which, just like rc.d/tmp, creates
an md-backed filesystem, only requires 'mountcritlocal' and
'zfs'.
[1] https://svnweb.freebsd.org/base?view=revision&revision=153028
More information about the freebsd-rc
mailing list