Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23217 - init.d/autofs is doesn't parse "yp" lines correctly
Summary: init.d/autofs is doesn't parse "yp" lines correctly
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Brad Cowan (RETIRED)
URL:
Whiteboard:
Keywords:
: 27695 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-21 01:31 UTC by Scott Serr
Modified: 2005-01-18 15:19 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.