All of lore.kernel.org
 help / color / mirror / Atom feed
* autofs init script doesn't support exclude
@ 2004-09-20 22:49 Marc MERLIN
  2004-09-21 20:39 ` Arthur Korn
  0 siblings, 1 reply; 6+ messages in thread
From: Marc MERLIN @ 2004-09-20 22:49 UTC (permalink / raw)
  To: autofs

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-09-23 10:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20 22:49 autofs init script doesn't support exclude Marc MERLIN
2004-09-21 20:39 ` 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

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.