[Voyage-linux] How does aufs get told to handle /var/log ?

Russell Lang (spam-protected)
Tue Dec 23 17:35:24 HKT 2008


I'm just started using voyage-lenny.

I'm trying to understand how aufs is configured.  
Where is the command to create /var/log with aufs?

My understanding so far (correct me if I'm wrong):
There are an initial set of files for /var/log on the CF card.
When one of these files is changed, the CF read-only version is copied to RAM 
and thereafter you see the read-write RAM version (on the upper branch).
When you shutdown, the read-write RAM version is discarded, unless you do 
the following:  auplink /var/log cpup

How does /lib/init/rw get used?

I'm using lighttpd.  What I would like to do is make branch on /var/www so there 
are an initial set of files already there, but I can write additional files after the 
system is booted.  Some files need to already exist on the CF because you need 
to specify ownership and permissions (e.g. errors.log).  Other files can be 
created after lighthttpd has started (e.g. access.log).  

Another variation would be to make a user home directory into a union fs when 
they log in, then write the changed files back to CF when they log out.


Russell Lang                   gsview at ghostgum.com.au
Ghostgum Software Pty Ltd      http://www.ghostgum.com.au/





More information about the Voyage-linux mailing list