Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 23217

Summary: init.d/autofs is doesn't parse "yp" lines correctly
Product: Gentoo Linux Reporter: Scott Serr <serrs>
Component: Current packagesAssignee: Brad Cowan (RETIRED) <bcowan>
Status: VERIFIED INVALID    
Severity: normal CC: brianp, linx_tk, robbat2
Priority: High    
Version: 1.4_rc4   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Scott Serr 2003-06-21 01:31:16 UTC
-------
my /etc/autofs/auto.master
-------
# the only line below
/home   yp auto.home
-------
original /tmp/debug
-------
STARTUPOPTIONS
DIR /home
MAPTYPE program
MAP /etc/yp
MAPOPTIONS auto.home
LOCALOPTIONS
-----
/tmp/debug after commenting out all of "# Handle degenerate map specifiers"
-----
STARTUPOPTIONS
DIR /home
MAPTYPE yp
MAP yp
MAPOPTIONS auto.home
LOCALOPTIONS

As you can see after taking out the fancy degenerate map if statements, I get
better behavior, but still not right.  I think it should be like this:
------
STARTUPOPTIONS
DIR /home
MAPTYPE yp
MAP auto.home
MAPOPTIONS 
LOCALOPTIONS

I hope the init.d/autofs is re-written soon, as the other two autofs bugs are
with the init.d script.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-09-09 14:00:35 UTC
*** Bug 27695 has been marked as a duplicate of this bug. ***
Comment 2 Brian Parkhurst 2004-06-14 16:40:09 UTC
I think the simpiler solution is that the nsswitch.conf file needs to be updated if you are going to use distributed (ie. nis) auto.master and other files.

the default:
automount: files

my change:
automount: files nis

I've made this change on both Gentoo Alpha 1.4 and on a P3 SMP distribution in which the auto.master is being served from a Tru64 Alpha NFS/NIS server and everything is working like a charm...
Comment 3 Quentin Arce 2004-11-11 10:49:04 UTC
Um... you have a bug in your auto.master file....

it should read

/home yp:auto.master

you are missing the ':'  

I have never been able to find a doc for this... I just know this is how it is supposed to be.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-08 21:27:58 UTC
I'm with Quentin here. You need that :.
Comment 5 Scott Serr 2005-01-18 15:19:00 UTC
Yup, that worked.  Thanks.