Stef Bon <[EMAIL PROTECTED]> writes:

> Ian Kent wrote:
>> On Mon, 2008-04-28 at 10:32 +0200, Stef Bon wrote:
>>   
>>> Hello,
>>>
>>> when I read the manpage for auto.master (and other docs) I see that I 
>>> can include another master file by doing:
>>>
>>> +auto.master
>>>
>>> The comment says that by doing so, the you can specify a master map 
>>> which is found using
>>> nsswitch sources.
>>> What happens then? Where does it look then?
>>>     
>>
>> If you have a line in /etc/nsswitch.conf like:
>>
>> automount: files nis
>>
>> it will look in /etc for auto.master (files) and try to connect to a nis
>> server and ask for auto.master.
>>   
> Ok, it will search for the files first and after that the nis thing.
> But here: this line which instructed the automounter to look in the 
> nsswitch.conf file is in a auto.master file, and then you instruct it to 
> look for the same file again.
> This does not make sense to me...

The daemon has logic to check for recursion, so it won't include the
same map over and over again.  If it is processing auto.master, and it
sees a +auto.master, it checks the next source in the list.

Cheers,
Jeff

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

Reply via email to