From: Marc MERLIN <marc@merlins.org>
To: autofs@linux.kernel.org
Subject: autofs init script doesn't support exclude
Date: Mon, 20 Sep 2004 15:49:49 -0700 [thread overview]
Message-ID: <20040920224949.GL23879@merlins.org> (raw)
From https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91559
Could you add a patch of that sort so that we can override an ldap/yp
auto.master and mount one or several of those mountpoints locally in /etc/fstab?
--- autofs.FCS 2003-01-27 20:22:54.000000000 -0800
+++ autofs 2003-05-23 18:38:27.000000000 -0700
@@ -34,6 +34,11 @@
initdir=/etc/init.d
#
+# Read configuration options
+#
+[ -f /etc/sysconfig/autofs ] && . /etc/sysconfig/autofs
+
+#
# Determine which kind of configuration we're using
#
system=unknown
@@ -196,6 +201,16 @@
fi
map=`echo $map | cut -f2- -d:`
+ # Process exclude list (to reduce number of automounts)
+ if [ ! -z "$AUTOFS_EXCLUDE" ]; then
+ for exclude in $AUTOFS_EXCLUDE
+ do
+ if [ x"$exclude" = x"$dir" ]; then
+ continue
+ fi
+ done
+ fi
+
: echo STARTUPOPTIONS $startupoptions
: echo DIR $dir
: echo MAPTYPE $maptype
I don't need this anymore as this is only useful if you use nis.
With ldap, you can use the following undocumented trick:
mrhat:~$ cat /etc/auto.master
/home /etc/auto.null
(doesn't work with YP though)
Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key
next reply other threads:[~2004-09-20 22:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-20 22:49 Marc MERLIN [this message]
2004-09-21 20:39 ` autofs init script doesn't support exclude Arthur Korn
2004-09-22 7:37 ` Ian Kent
2004-09-22 13:28 ` Jeff Moyer
2004-09-23 3:31 ` Ian Kent
2004-09-23 10:54 ` Arthur Korn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040920224949.GL23879@merlins.org \
--to=marc@merlins.org \
--cc=autofs@linux.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.