In /etc/rc.d/init.d/autofs, the function getmounts() does nothing unless /etc/auto.master exists. The function getrawmounts() on the other hand knows that if /etc/auto.master doesn't exist that it should look in NIS instead. Just removing this condition seems to fix the problem fine. I'm not sure why it's even there. I don't have Pinstripe anymore, but it seems to me that this problem was not present in the pinstripe release since I used autofs via NIS fine there. My trivial patch is attached. ----------------------------------------------------------- --- autofs.qdist Wed Aug 23 14:28:36 2000 +++ autofs Tue Oct 3 08:21:55 2000 @@ -94,8 +94,6 @@ # # Check for local maps to be loaded # -if [ -f /etc/auto.master ] -then knownmaps=" " getrawmounts | ( while read dir map options @@ -152,7 +150,6 @@ knownmaps=" $dir/ $knownmaps" done ) -fi } # ----------------------------------------------------------
Well, I thought this this was a feature and not a bug. Before, you always had to remove /etc/auto.* to get your maps from NIS but now it even gets my NIS maps when I have those files in /etc. This means, I now don't even have to remove the files to get maps from NIS as I always had to do RHL 6.x.
That particular part of the patch we apply to the init script must have fallen out at some point. It will be re-added. Thanks!
The current incarnation of the repeatedly-modified init script now scans /etc/nsswitch.conf, so this should be Right for everyone.