Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8254 - autofs-3.1.7-r4.ebuild
Summary: autofs-3.1.7-r4.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Brad Cowan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 3930 4248
Blocks:
  Show dependency tree
 
Reported: 2002-09-23 04:10 UTC by Brad Cowan (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
autofs-3.1.7-r4.ebuild (autofs-3.1.7-r4.ebuild,1.78 KB, text/plain)
2002-09-23 04:11 UTC, Brad Cowan (RETIRED)
Details
ChangeLog (ChangeLog,2.34 KB, text/plain)
2002-09-23 04:11 UTC, Brad Cowan (RETIRED)
Details
autofs.rc6 (autofs.rc6,3.69 KB, text/plain)
2002-09-23 04:11 UTC, Brad Cowan (RETIRED)
Details
digest-autofs-3.1.7-r4 (digest-autofs-3.1.7-r4,64 bytes, text/plain)
2002-09-23 04:12 UTC, Brad Cowan (RETIRED)
Details
auto.master (auto.master,237 bytes, text/plain)
2002-09-23 04:12 UTC, Brad Cowan (RETIRED)
Details
auto.misc (auto.misc,315 bytes, text/plain)
2002-09-23 04:12 UTC, Brad Cowan (RETIRED)
Details
autofs.confd (autofs.confd,125 bytes, text/plain)
2002-09-23 04:13 UTC, Brad Cowan (RETIRED)
Details
automount.diff (automount.diff,322 bytes, text/plain)
2002-09-23 04:13 UTC, Brad Cowan (RETIRED)
Details
autofs.rc6 corrected version (autofs.rc6,3.69 KB, text/plain)
2002-09-23 04:47 UTC, Brad Cowan (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:10:18 UTC
Ok I've been working on solving problems with autofs for the last couple of days.
several things I've been working on come from bugs #3930 and #4248.
I have added net-nds/portmap, and net-nds/ypbind to RDEPEND. I also updated the
init scripts to add a working stats option...this option is the same as most
distros status option, as there seems to be a predefined status option in gentoo
that just shows whether a daemon is running or not. I reworked the reload to
make it work properly, and added a hard restart option. I also added info to
pkg_postinst to note that portmap must be present in the default run-level in
order for remote NFS mounts without actually running NFS
Comment 1 Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:11:01 UTC
Created attachment 4087 [details]
autofs-3.1.7-r4.ebuild
Comment 2 Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:11:20 UTC
Created attachment 4088 [details]
ChangeLog
Comment 3 Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:11:45 UTC
Created attachment 4089 [details]
autofs.rc6
Comment 4 Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:12:04 UTC
Created attachment 4090 [details]
digest-autofs-3.1.7-r4
Comment 5 Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:12:21 UTC
Created attachment 4091 [details]
auto.master
Comment 6 Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:12:41 UTC
Created attachment 4092 [details]
auto.misc
Comment 7 Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:13:00 UTC
Created attachment 4093 [details]
autofs.confd
Comment 8 Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:13:20 UTC
Created attachment 4094 [details]
automount.diff
Comment 9 Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:14:22 UTC
*NOTE all other files in the filesdir can be removed as they are abandoned with
no ebuild calling on them
Comment 10 Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:46:44 UTC
UUGGHH....posted the wrong files/autofs.rc6
 added the correct attachment
Comment 11 Brad Cowan (RETIRED) gentoo-dev 2002-09-23 04:47:42 UTC
Created attachment 4095 [details]
autofs.rc6 corrected version
Comment 12 Nick Hadaway 2002-09-26 11:20:09 UTC
autofs.confd contains this...
-----------------------------
# Config file for /etc/init.d/autofs
FLAGS="defaults 21"

#
# e.g. localoptions='rsize=8192,wsize=8192'
# 
localoptions=''

autofs.rc6 contains this...
---------------------------
#FIXME: this works but it really sucks
if echo $timeout|grep -v -- '--timeout' >/dev/null ; then
	rest="$mnt $rest"
	mnt="$timeout"
	timeout=""
fi

In autofs.confd we should add "--timeout=60" to localoptions so we don't have 
to do this messy passing of variables around.
Comment 13 Nick Hadaway 2002-10-11 13:40:43 UTC
*** Bug 6058 has been marked as a duplicate of this bug. ***
Comment 14 ajacoutot 2002-11-01 06:33:02 UTC
With the lastest autofs ebuild, whatever I try, I can only mount/see one map
when using NIS.

# ypcat auto.master
auto.home       -nobrowse
auto.local

# ypcat auto.home
-fstype=nfs,rw,hard,intr,rsize=8192,wsize=8192 srv01.lphp.local:/home/&

# ypcat auto.local
-fstype=nfs,rw,hard,intr,rsize=8192,wsize=8192 srv03.lphp.local:/public
-fstype=nfs,rw,hard,intr,rsize=8192,wsize=8192 srv02.lphp.local:/public
-fstype=nfs,rw,hard,intr,rsize=8192,wsize=8192 srv01.lphp.local:/public

auto.home is mounted on /home and auto.local on /mnt/export.

# mount
srv01.lphp.local:/home/ajacoutot on /home/ajacoutot type nfs
(rw,nobrowse,hard,intr,rsize=8192,wsize=8192,addr=192.168.0.1)

# cd /mnt/export/public@srv01
bash: cd: /mnt/export/public@srv01: No such file or directory

??? --> isn't it supposed to automount ???
I do have the directory /mnt/export

# /etc/init.d/autofs stats
Configured Mount Points:
------------------------
/usr/sbin/automount  /home/ yp auto.home nobrowse --timeout=60
/usr/sbin/automount  /mnt/export/ yp auto.local  --timeout=60

Active Mount Points:
--------------------
/usr/sbin/automount /home/ yp auto.home nobrowse --timeout=60
grep automount

If I disable the auto.home map file on the server, then I can mount what's in
auto.local... odd...
Comment 15 Brad Cowan (RETIRED) gentoo-dev 2002-11-17 20:08:48 UTC
hopefully fixed....please submit another bug if not :)
Comment 16 Scott A. Friedman 2002-11-17 20:24:16 UTC
Okay, I am going to add something here too...

3.1.7-r4 has

need net
use portmap ypbind

autofs does *not* need net - and it does *not* use portmap - at least not 
directly. As I suggested in bug#3930 I believe that the correct setup should be

need localmount
use ypbind nfs

portmap and net get taken care of by ypbind and nfs. the need localmount just 
forces the correct order since things seems to go in alphabetical order 
otherwise

Scott
Comment 17 ajacoutot 2002-11-18 02:09:57 UTC
Thanks for this new ebuild release... it does resolve my problem !!! 
Cool.