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

* Re: autofs init script doesn't support exclude
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Arthur Korn @ 2004-09-21 20:39 UTC (permalink / raw)
  To: autofs


[-- Attachment #1.1: Type: text/plain, Size: 548 bytes --]

Hi

Marc MERLIN schrieb:
> >From https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91559

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

This would be /etc/default/autofs for Debian then ...

ciao, 2ri
-- 
Secure email, spread GPG, clearsign all mail. http://www.gnupg.org
.
Options are optional.
 -- autofs(5)

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

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

* Re: autofs init script doesn't support exclude
  2004-09-21 20:39 ` Arthur Korn
@ 2004-09-22  7:37   ` Ian Kent
  2004-09-22 13:28     ` Jeff Moyer
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Kent @ 2004-09-22  7:37 UTC (permalink / raw)
  To: Arthur Korn; +Cc: autofs

On Tue, 21 Sep 2004, Arthur Korn wrote:

> Hi
> 
> Marc MERLIN schrieb:
> > >From https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91559
> 
> > --- 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
> 
> This would be /etc/default/autofs for Debian then ...

Yes, the fact that this can be different for different distributions means 
that it's not as straight forward as one would hope.

This is only one of the cases that needs to be catered. I'll take this on 
advisement but would prefer that these type of patches be carried in the 
distribution packages till we can deal with them in a sensible manner.

Ian

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

* Re: autofs init script doesn't support exclude
  2004-09-22  7:37   ` Ian Kent
@ 2004-09-22 13:28     ` Jeff Moyer
  2004-09-23  3:31       ` Ian Kent
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Moyer @ 2004-09-22 13:28 UTC (permalink / raw)
  To: Ian Kent; +Cc: autofs

==> Regarding Re: [autofs] autofs init script doesn't support exclude; Ian Kent <raven@themaw.net> adds:

raven> On Tue, 21 Sep 2004, Arthur Korn wrote:
>> Hi
>> 
>> Marc MERLIN schrieb: > >From
>> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91559
>> 
>> > --- 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
>> 
>> This would be /etc/default/autofs for Debian then ...

raven> Yes, the fact that this can be different for different distributions
raven> means that it's not as straight forward as one would hope.

raven> This is only one of the cases that needs to be catered. I'll take
raven> this on advisement but would prefer that these type of patches be
raven> carried in the distribution packages till we can deal with them in a
raven> sensible manner.

I'm not sure how to interpret this.  What do you forsee as "a sensible
manner?"  Do you think the mechanism is correct?  Is there a way to achieve
this with the Sun automounter?

-Jeff

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

* Re: autofs init script doesn't support exclude
  2004-09-22 13:28     ` Jeff Moyer
@ 2004-09-23  3:31       ` Ian Kent
  2004-09-23 10:54         ` Arthur Korn
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Kent @ 2004-09-23  3:31 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: autofs

On Wed, 22 Sep 2004, Jeff Moyer wrote:

> ==> Regarding Re: [autofs] autofs init script doesn't support exclude; Ian Kent <raven@themaw.net> adds:
> 
> raven> On Tue, 21 Sep 2004, Arthur Korn wrote:
> >> Hi
> >> 
> >> Marc MERLIN schrieb: > >From
> >> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91559
> >> 
> >> > --- 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
> >> 
> >> This would be /etc/default/autofs for Debian then ...
> 
> raven> Yes, the fact that this can be different for different distributions
> raven> means that it's not as straight forward as one would hope.
> 
> raven> This is only one of the cases that needs to be catered. I'll take
> raven> this on advisement but would prefer that these type of patches be
> raven> carried in the distribution packages till we can deal with them in a
> raven> sensible manner.
> 
> I'm not sure how to interpret this.  What do you forsee as "a sensible
> manner?"  Do you think the mechanism is correct?  Is there a way to achieve
> this with the Sun automounter?

I think this will need thought wrt what distros use which directories.
Perhaps some work on configure to make it happen right and at least a deal 
of work on the init script.

My question is "can we try to do this in a reasonably distribution 
independent manner". Having each distro carry its own patches is one way 
to identify the needs.

The reason I piped up here is that I have a crazy idea that it would be 
good to be able to use autofs in a range of distributions. Not just RedHat 
and Debian as it is now in the init script. But I'm not sure how I can do 
that yet.

A seperate configuration, such as is used in Linux, is not available with 
the Solaris automounter.

Ian

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

* Re: autofs init script doesn't support exclude
  2004-09-23  3:31       ` Ian Kent
@ 2004-09-23 10:54         ` Arthur Korn
  0 siblings, 0 replies; 6+ messages in thread
From: Arthur Korn @ 2004-09-23 10:54 UTC (permalink / raw)
  To: Ian Kent; +Cc: autofs


[-- Attachment #1.1: Type: text/plain, Size: 1961 bytes --]

Hi

Ian Kent schrieb:
> I think this will need thought wrt what distros use which directories.
> Perhaps some work on configure to make it happen right and at least a deal 
> of work on the init script.
> 
> My question is "can we try to do this in a reasonably distribution 
> independent manner". Having each distro carry its own patches is one way 
> to identify the needs.

Actually I don't like this at all. The debian patches to the
init script of autofs3 are the reason why autofs4 is not even in
unstable yet: they are copious in size and fix some delicate
(shell coding, ldap) issues, so it's not obvious wheter they
need to be applied to the new init script and how these problems
are best fixed. Partly that's an issue of badly documented
patches, but they shoudln't have accumulated like this in the
first place.

What I'd much prefer to see (and actually thought about doing
myself) is removing the whole "plug the master map together" and
direct interaction with automount processes from the init
script. Instead there should be a autofscontrol tool (similar to
the ones for apache, bind, ntpd, etc; interactive operation is
not strictly a requirement though) which can start, stop, reload
and display status information. This would have to be able to
act globally on _all_ automount instances.

The init script could then stick to assuring a sane environment
and calling this control tool in the way desired by the user.

> The reason I piped up here is that I have a crazy idea that it would be 
> good to be able to use autofs in a range of distributions. Not just RedHat 
> and Debian as it is now in the init script. But I'm not sure how I can do 
> that yet.

Separating distribution specific stuff from generic code would
be a first step towards that goal IMHO.

ciao, 2ri
-- 
Secure email, spread GPG, clearsign all mail. http://www.gnupg.org
.
"Never" is almost always earlier than you think.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

^ 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.