NIS, automounting, Solaris and headaches

Derek D. Martin ddm+gnhlug at pizzashack.org
Mon Sep 9 17:24:47 EDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At some point hitherto, Ken Ambrose hath spake thusly:
> On Mon, 9 Sep 2002, Mark Komarinski wrote:
> 
> > On Mon, Sep 09, 2002 at 12:28:32PM -0400, Derek D. Martin wrote:
> >
> > A few more questions.  I'm getting closer to something that may work.
> >
> > > # auto.master
> > > /homes		yp:auto.home
> >
> > Is this the contents of /etc/auto.master, or a YP map?
> 
> I believe auto.mater is always a file, though I could be mistaken.

Nope.  From /etc/init.d/autofs:

- -=-=-=-=-

#
# Check for all maps that are to be loaded
#
function getschemes()
{
    grep ^automount: /etc/nsswitch.conf | sed -e 's/^.*://' -e 's/\[.*\]/ /g'
}
function getfilemounts()
{
    if [ -f /etc/auto.master ] ; then
        cat /etc/auto.master | sed -e '/^#/d' -e '/^$/d'
    fi
}
function getnismounts()
{
    /usr/bin/ypcat -k auto.master 2> /dev/null | sed -e '/^#/d' -e '/^$/d'
}

- -=-=-=-=-

And the logic to decide where to get auto.master from has been fixed
too.  It now parses /etc/nsswitch.conf.  Yay autofs team!  =8^)

[This is as of autofs 3.1.7, and possibly before...]

- -- 
Derek Martin               ddm at pizzashack.org    
- ---------------------------------------------
I prefer mail encrypted with PGP/GPG!
GnuPG Key ID: 0x81CFE75D
Retrieve my public key at http://pgp.mit.edu
Learn more about it at http://www.gnupg.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9fRGedjdlQoHP510RAn50AJ4wALBtAXRIjibr7M5P/B4WQbNM/ACfXp2b
WUblSN5Fr3DVNIXKZm7DKV0=
=Ravx
-----END PGP SIGNATURE-----



More information about the gnhlug-discuss mailing list