Bug 17543 - Support of -hosts in autofs
Summary: Support of -hosts in autofs
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: autofs (Show other bugs)
(Show other bugs)
Version: 7.0
Hardware: i386 Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-09-15 17:24 UTC by Steve Dum
Modified: 2007-04-18 16:28 UTC (History)
1 user (show)

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: ---


Attachments (Terms of Use)

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!


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