On Mon, 28 Feb 2005, Jeff Moyer wrote:

==> Regarding Re: [autofs] [PATCH] check nsswitch.conf for submounts; [EMAIL 
PROTECTED] adds:

raven> On Wed, 23 Feb 2005, Chris Feist wrote: Thanks Chris.

raven> This is a really useful bit of code.  Appart from addressing the
raven> default map problem, it is one of the pieces of code needed to move
raven> logic out of the init script.

raven> Howerver, we can't assume that maps are stored in "/etc".  This
raven> really should be a configure logical.

And why not? Is this not precisely what the Sun automounter does?

Yes but not all distributions store their maps in /etc.
I don't want to make it hard for myself and others that may need this in time to come.


Gentoo stores maps in /etc/autofs for example.


-Jeff

This patch addresses the problem if a user has the following in one of
their automount maps: # auto.misc test -fstype=autofs auto.m2

Before it would automatically assume that auto.m2 was a yp/nis map.  The
patch now checks if the file exists in /etc/ (and if it's a file or
program map) or if it exists in yp (according to the order in
nsswitch.conf).

In the future we may want to include functionality in the lookup_xxx.so
modules so we can more easily detect if a certain map exists.

Thanks, Chris



raven> _______________________________________________ autofs mailing list raven> [email protected] raven> http://linux.kernel.org/mailman/listinfo/autofs


_______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to