On Tue, Nov 20, 2012 at 11:17:09AM +0100, Stefan Skoglund wrote: > The documentation for how to use the 'auto.master.d' feature is really > non-existing. What exists is a sketch from the designer for what it is > (or how it should be.)
/etc/auto.master now has comments that describe how to use the feature: # Include /etc/auto.master.d/*.autofs # 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 extra.autofs file. # +dir:/etc/auto.master.d For instance, I have the following: $ cat /etc/auto.master.d/work.autofs /work file:/etc/auto.work browse $ cat /etc/auto.work server1-share1 -fstype=cifs,sec=krb5i,cruid=$CRUID,multiuser ://server1.example.com/share1 server2-share1 -fstype=cifs,sec=krb5i,cruid=$CRUID,multiuser ://server2.example.com/share1 In addition, auto.master(5) describes the + inclusion feature: Additionally, a map may be included from its source as if it were itself present in the master map by including a line of the form: +[maptype[,format]:map options] and automount(8) will process the map according to the specification described below for map entries. ... the format of a master map entry: mount-point [map-type[,format]:]map [options] ... and describes the 'dir' map-type: This map type can be used at + master map including notation. The contents of files under given directory are included to the master map. The name of file to be included must be ended with ".autofs". A file will be ignored if its name is not ended with the suffix. In addition a dot file, a file which name is started with "." is also ignored. -- Sam Morris <https://robots.org.uk/> CAAA AA1A CA69 A83A 892B 1855 D20B 4202 5CDA 27B9