Re: About /etc/mtab and /proc/mounts

Miles Bader
2003-02-27T04:07:26Z

Kasper Dupont <kasperd@daimi.au.dk> writes:
> I don't think you can put all the information from /etc/mtab
> into /proc/mounts without breaking compatibility.

Why? Since the option syntax is regular, presumably programs simply
ignore options they don't understand. No?

> My suggestion would be to change it from /etc/mtab to /mtab.d/mtab.

Please, no. don't pollute the root (_especially_ with little one-use
directories like that).

/var is clearly the right place for this; if /var isn't mounted
initially, I'd suggest that mount should simply not update any file at
that point, and the init-script that mounts /var can be responsible from
propagating information from /proc/mounts to /var/whatever.

-Miles
--
"I distrust a research person who is always obviously busy on a task."
--Robert Frosch, VP, GM Research