[PATCH] Explain /etc/auto.master.d usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've noticed people have difficulty fully parsing the rather terse
description in samples/auto.master, eg bugs.debian.org/693782.
Give a specific example of the usage to make understanding easier.

Signed-off-by: Vincent McIntyre <vincent.mcintyre@xxxxxxxx>

diff --git a/man/auto.master.5.in b/man/auto.master.5.in
index 68242d4..ee83794 100644
--- a/man/auto.master.5.in
+++ b/man/auto.master.5.in
@@ -383,6 +383,20 @@ All accesses to paths in the map
 will trigger mounts when they are accessed and the Name Service Switch
 configuration will be used to locate the source of the map
 .IR auto.data .
+.sp
+To avoid making edits to @@autofsmapdir@@/auto.master,
+@@autofsmapdir@@/auto.master.d may be used.
+Files in that directory must have an ".autofs" suffix, e.g.
+.IR @@autofsmapdir@@/auto.master.d/extra.autofs.
+Such files contain lines of the same format as the auto.master file, e.g.
+.sp
+.RS +.2i
+.ta 1.0i
+.nf
+/foo    /etc/auto.foo
+/baz    yp:baz.map
+.fi
+.RE
 .SH "SEE ALSO"
 .BR automount (8),
 .BR autofs (5),
diff --git a/samples/auto.master b/samples/auto.master
index 9a9968a..0fc57f3 100644
--- a/samples/auto.master
+++ b/samples/auto.master
@@ -13,7 +13,11 @@
 /net   -hosts
 #
 # Include /etc/auto.master.d/*.autofs
-# The included files must conform to the format of this file.
+# To add an extra map using this mechanism you will need to add
+# two configuration items - one /etc/auto.master.d/extra.autofs file
+# (using the same line format as the auto.master file)
+# and a separate mount map (e.g. /etc/auto.extra or an auto.extra NIS map)
+# that is referred to by the foo.autofs file.
 #
 +dir:/etc/auto.master.d
 #




[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux