On  So 28 Jun 2020 19:18:48 CEST, Sam Morris wrote:

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.

Thanks!
Mike
--

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de

Attachment: pgpAituwRnY5K.pgp
Description: Digitale PGP-Signatur

Reply via email to