[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ifupdown writes to /etc... a bug?


On Tue, Mar 11, 2003 at 06:59:34PM +1000, Anthony Towns wrote:

> On Tue, Mar 11, 2003 at 09:13:39AM +0100, Emile van Bergen wrote:
> > > Emile: How about calling the new directory "/run" ?
> > OTOH, /mem/preserved is perhaps still a bit clearer than /run/preserved. 
> Does it really make sense to preserve anything in /run? That is, is
> there anything that both needs to be available before /var, and needs
> to be preserved over reboot?

No, but it does make sense to have a tmpfs of which parts are preserved.

If /run or equivalent is going to be a tmpfs by default (which I still
strongly advocate), then taking full advantage of that and defining a
part of it that is preserved at shutdown makes sense for files that are
frequently written to but are not important enough to spin up your disk

> Calling it "/run" allows us to:
> 	(a) just leave it as a directory on /, presuming / will be mounted
> 	    rw. Simple, obvious, no effort required!
> 	(b) we can also symlink it to /var/run/early if /var is a local fs
> 	(c) if someone wants, they can make it tmpfs, or whatever themselves
> Calling it "/mem" would be confusing in either (a) or (b). If someone
> wants to mount /var/run as tmpfs, that's their choice, independent of
> any of this.

However, I don't think /mem is that confusing in case (a) or if it's a
symlink to /var/mem, as long as it still exhibits the most important
quality of RAM on systems with write back filesystems and virtual
memory: it's gone at reboot, with the possible exception of /preserve.

Why would you want (b) at all? Nothing uses /var/run/early yet, and if a
separate /run isn't needed outside /var because /var is writable before
anything else, just have /run as a symlink to /var/run and still adopt
/run instead of /var/run/early for things that need early write access.

> I guess /etc/mtab, /etc/network/ifstate, /etc/motd and maybe
> /etc/ioctl.save (wtf is that?) should all move in there?




E-Advies - Emile van Bergen           emile@e-advies.nl      
tel. +31 (0)70 3906153           http://www.e-advies.nl    

Attachment: pgpSh2qSB_TlZ.pgp
Description: PGP signature

Reply to: