Question on /var/run, tmpfs and initscripts

Harald Hoyer harald at redhat.com
Wed Feb 11 10:41:58 UTC 2009


Paul Wouters wrote:
> 
> Hi,
> 
> I've been optimizing a system for flash, and wanted to have /var/run
> be a tmpfs mount, so that these writes to not wear down the flash/ssd.
> 
> I noticed only a few initscripts create their own directory in /var/run/
> if they need it.
> 
> I've read http://fedoraproject.org/wiki/FCNewInit and
> http://fedoraproject.org/wiki/FCNewInit/Initscripts but neither one
> mentions anything about /var/run being tmpfs. Browsing the FSB does
> not yield anything either.
> 
> Should I consider it a bug if an initscript is using a subdirectory
> in /var/run/ but does not check/create it on being called with start?
> 
> And is there a convention for when to use files directly in /var/run/
> and when to create a subdirectory?
> 
> Paul
> 

You could use the readonlyroot feature and customize /etc/rwtab, 
/etc/sysconfig/readonly-root




More information about the devel mailing list