==> Regarding [autofs] -hosts and -null enabling for autofs v4.1.x; "Gordon 
Lack" <[EMAIL PROTECTED]> adds:

gml4410>    Here is a simple patch to the system autofs startup script so that
gml4410> -hosts and -null is enabled in autofs 4.1.x.  This patch is actually
gml4410> against a RedHat autofs, but the same code is present in
gml4410> samples/rc.autofs.in.

gml4410>    For -hosts, it just translates the map name to /etc/auto.net if
gml4410> that is present and executable.

That bit looks sane at first glance.

gml4410>    For -null, it just adds the mountpoint location to the list of
gml4410> knownmaps, but doesn't do anything else.

This isn't exactly right.  It should "nullify" the next occurrence of the
given mount point, and then go away.  Consider a map like this:

/home -null
+auto.master
/home /etc/auto.home

Let's assume that +auto.master reads the master map from nis, and the nis
master map defines /home to point to some nis map.  The above would ignore
the /home entry in the nis master, and allow us to replace it with our own.

-Jeff

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to