Red Hat Bugzilla – Bug 5796
autofs start script ignores NIS maps
Last modified: 2008-05-01 11:37:52 EDT
A logic error in /etc/rc.d/init.d/autofs prevents automount
from being started for maps that are received through NIS.
the function 'getmounts()' in the autofs start script does
if[ -f /etc/auto.master ] then
start automount for mount points in/etc/auto.master
search for mount points in NIS maps.
this logic prevents maps from being loaded from _both_
/etc/auto.master and over NIS. The fix for this is quite
simple: test first for /etc/auto.master and then test for
NIS maps. I'd be happy to provide a patch if this
explanation isn't clear.
------- Additional Comments From 10/14/99 06:01 -------
A quick fix is to use the startup script from 6.0
Although not the best of solutions, I need my system up and running.
------- Additional Comments From 10/20/99 13:44 -------
Autofs should check /etc/nsswitch.conf to determine if it should use
NIS at all. In 6.0, you could say "automount: files" in
/etc/nsswitch.conf, and autofs it would still check NIS. It looks
like this change in 6.1 was meant to remedy the problem, but the best
solution was not chosen.
*** This bug has been marked as a duplicate of 6484 ***