Re: Get rid of /etc/mtab ?
On Mon, Jul 29, 2002 at 10:22:02AM +0200, Goswin Brederlow wrote:
> Idealy /proc/mounts should change. In a chroot /proc/mounts should
> also only contain entries inside the chroot and relative to it.
> But asking /proc/mount to change when something is mounted on /dev is
> probably too much to ask. The layout of the new /dev (you could mount
> anything there) could be completly random and/or incomplete. Should
> the kernel not show entries because your missing device nodes? One
> could make an exception for devfs on /dev probably but who would write
> the code?
I gather that this is a rare condition that only occurs if you compile
devfs into the kernel but do not use it?
Obvious solution: Don't do this!
Next solution: have some /proc/sys setting that can be changed
by root to reflect the naming system that should be used.
This could be configured inside /etc/sysctl.conf for instance.
Or devfsd could automatically set it up on startup, depending
on if it detects devfs or not.
And/Or, have a kernel parameter that specifies the naming convention
Brian May <email@example.com>