James,

In your message on you write:
> > Great job on "autofs". The only grief I had with the package are:
> > 
> > 1) Links for the "autofs" start scripts were omitted from the RPM.
> >      Workaround "ln -s /etc/rc.d/init.d/autofs /etc/rc.d/rc[3-5].d/S08autof
> s"
> 
> Complain to RedHat.
> 
> > 2) Configuring a local mapping fails i.e.
> > 
> >         /etc/auto.master:
> > 
> >         /usr/u        /etc/auto.home    -rw,hard,intr
> > 
> >         /etc/auto.home:
> > 
> >         foo    -fstype=ext2        :/home/foo
> > 
> >     Workaround is to export "/home" and configure "auto.home":
> > 
> >         foo    localhost::/home/foo
> 
> No.  You're completely misunderstanding how mounting works.  Drop the
> -fstype=ext2 and it will work.  -fstype=ext2 means you're trying to
> mount a *device* with an ext2 filesystem on it.
> 
> > 3) Enhancement request to provide "hosts" mapping.
> 
> Won't happen any time soon.
> 
>       -hpa

I implemented a quick hack at my site to get "hosts" functionality.

Here is the relevent entry from my auto.master file:

/net    /etc/auto.net 

Here is my /etc/auto.net (which is executable, so the "program-type" map
is used:

#!/bin/bash
if /usr/bin/ypmatch $1 hosts.byname 2>/dev/null 1>&2
then
  echo $1:/
fi  

I am using yellow-pages here to basically see if the host exists.  It
would be better (but even slower) to use nslookup.  

So now I can do the standard:

  ls /net/<hostname> 

stuff.  

Hope this helps.  Anybody have a better "hack"?

Andrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   Andrew Patterson                          Voice:  (970) 898-3261
   Hewlett-Packard Company                   FAX:    (970) 898-2180
   Development Solutions Lab                 email: [EMAIL PROTECTED]
   3404 East Harmony Road / MS 7
   Fort Collins, Colorado  80525  

Reply via email to