Bug 17543

Summary: Support of -hosts in autofs
Product: [Retired] Red Hat Linux Reporter: Steve Dum <steve_dum>
Component: autofsAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED DEFERRED QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: kheal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-09-15 17:24:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steve Dum 2000-09-15 17:24:19 UTC
autofs now supports /net mounts, which on most other systems are designated
by a type of
-hosts in the automount tables.  It would be nice if
/etc/rc.d/init.d/autofs would deal with
a -hosts option rather than just stripping out all -* options.  The
following diffs to autofs-4.0.0pre7-23 autofs fix this
*** 101,106 ****
--- 101,109 ----
        do
              # These checks screen out duplicates and skip over
directories
              # where the map is '-'.
+           if [ "x$map" = "x-hosts" ]; then
+               map=/etc/auto.net
+           fi
            if [ ! -z "$dir" -a ! -z "$map" \
                        -a x`echo "$map" | cut -c1` != 'x-' \
                          -a "`echo "$knownmaps" | grep $dir/`" = "" ]
*****************

Comment 1 Nalin Dahyabhai 2000-09-15 18:16:47 UTC
We're backing off from autofs 4 for the release because it won't be ready in
time, so the issue is (sadly) moot.

Comment 2 Kenneth Heal 2003-11-16 16:42:05 UTC
Am running RedHat 9 with kernel 2.4.20-20.9 and autofs 3.1.7-36 and 
finding that the Solaris-style /net -hosts mapping does not work.  
AutoFS 4 did not come with distrib and is not on RH RPMs site.  Does 
it fix this and does anyone know where I can get a stable RPM for an 
i686 box?

Thanks!