Bug 33511 - The /etc/init.d/autofs fails to use the /etc/auto.net map.
The /etc/init.d/autofs fails to use the /etc/auto.net map.
Product: Red Hat Linux
Classification: Retired
Component: autofs (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Nalin Dahyabhai
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2001-03-27 18:04 EST by Virtual Janitor
Modified: 2007-04-18 12:32 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-03-27 18:04:35 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Virtual Janitor 2001-03-27 18:04:32 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-0.1.28 i686)

The executable /etc/auto.net script fails to get used, even if it is
defined in /etc/auto.master, when the /etc/nsswitch.conf includes
"automount: nis files" instead of "automount: files nis" and if the shared
NIS auto.master has a "-hosts" line.

Reproducible: Always
Steps to Reproduce:
1. SunOS NIS environment with a -hosts line in yp auto.master map
2. local /etc/auto.net script and /etc/auto.master with "/net 
3. /etc/nsswitch.conf with "automount:  nis files"

Actual Results:  undefined automount point /net

Expected Results:  automount point /net

My workaround:

--- autofs      Sat Mar  3 12:30:45 2001
+++ autofs.gbm  Tue Mar 27 15:50:31 2001
@@ -121,6 +121,7 @@
        getrawmounts | (
        while read dir map options
+            if [ ! -z "$map" -a "$map" = "-hosts" ] ; then continue; fi;
            # These checks screen out duplicates and skip over directories
            # where the map is '-'.
            if [ ! -z "$dir" -a ! -z "$map" \
Comment 1 Nalin Dahyabhai 2001-08-28 19:18:19 EDT
This should be integrated into autofs-3.1.7-20 and later.  Thanks!

Note You need to log in before you can comment on or make changes to this bug.