On 10/2/06, Chris Kuethe <[EMAIL PROTECTED]> wrote:
On 10/2/06, Riley McIntire <[EMAIL PROTECTED]> wrote:
> On 10/2/06, Ray <[EMAIL PROTECTED]> wrote:
> > I plan to MFS swap the /var to ramdisk as the following line in fstab:
>
> > Is there any gotcha if comment out line 258 in /etc/rc to:
> > # mount /var >/dev/null 2>&1
>
> Works for me. Haven't had any problems.
Don't hack /etc/rc
I tend to agree, but haven't found a good alternative...
set the "noauto" flag on /var. that will prevent it from being mounted
by "mount -a" but "mount /var" will mount it anyway.
Ray didn't mention what he was doing.
In one case, I'm using an mfs to mount /var on a soekris based
firewall. The problem with the ``noauto'' option is that /var gets
mounted at line 258 rather than (I think) 201. In this case, using
dhclient on one interface, the network needs to start. However, the
network is started about line 251, and needs to log to /var, which if
mount'd at 258 fails. So in this instance, which isn't really
uncommon, /var needs to mount at 201.
I don't see another solution that doesn't involve more mucking about.
Riley
--
"Education: The ability to listen to almost anything without losing
your temper or self confidence." - -- Robert Frost