[Pkg-sysvinit-devel] Re: Question: mount /var/run as tmpfs

Josselin Mouette joss at debian.org
Mon Oct 30 09:33:17 CET 2006


Le lundi 30 octobre 2006 à 15:02 +0700, Aleksey Midenkov a écrit :
> Hello all the Debian Community!
> 
> It is possible to detect if kernel supports tmpfs and mount it 
> on /var/run, /var/lock, /var/tmp and maybe /tmp and may be other places. This 
> can be made in one of the appropriate debian packages and made configurable 
> through debconf. The package to fit this, I think, is initscripts.
> 
> How do you think, would it be appreciated? Does it potentionally violates some 
> policy for the particular directory from what I mentioned? May be you will 
> suggest some other directores. I want to know because I want to do this.

/var/run is problematic because its subdirectories are expected to
survive across reboots. I haven't tried /var/lock but there is no reason
for tmpfs not to work for this one.

Using a tmpfs for /var/tmp would definitely violate the FHS as it must
survive across reboots.

As for /tmp, this is the primary intended use for tmpfs and I use it
whenever possible. I don't know if it's a good idea when there isn't
much memory, though.
-- 
Josselin Mouette                /\./\

"Do you have any more insane proposals for me?"




More information about the Pkg-sysvinit-devel mailing list