Bug 753623

Summary: autofs does not wait for ypbind/NIS
Product: [openSUSE] openSUSE 12.1 Reporter: Peter Sütterlin <P.Suetterlin>
Component: OtherAssignee: Leonardo Chiquitto <lchiquitto>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P3 - Medium CC: lchiquitto
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 12.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 755020    

Description Peter Sütterlin 2012-03-22 15:28:26 UTC
User-Agent:       Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.10.229 Version/11.61

I'm using autofs to mount users homedirectories and some other central software dirs.  The map files come via NIS from the server.  But obviously when booting, autofs does not wait for NIS to be up, and no directories are available.
Just restarting autofs after boot is finished starts things as expected.

Probably related to systemd (I'm using the default).  Have not checked old init system.


Reproducible: Always

Steps to Reproduce:
1. boot a system with autofs maps served via NIS
2. try to access automounted directories after boot
3. they are not there
Actual Results:  
users can log in, but don't get a home directory until the superuser restarts the autofs service

Expected Results:  
autofs should wait until ypbind is up.

auto.master has:
/home   yp              auto.home       -rw,intr
/extern yp              auto.extern     -ro,intr

using systemd for booting

Probably sort of related to Bug 737520 (kdm wait for NIS)
Comment 1 Leonardo Chiquitto 2012-07-06 21:23:19 UTC
This is because support for systemd was not included in the AutoFS package from 12.1 :( This will be fixed for 12.2.

For 12.1, I'll try to add systemd support in the next update. Meanwhile, you can use the package from the "filesystems" project in OBS.
Comment 2 Leonardo Chiquitto 2012-07-06 21:24:04 UTC
Fixed in the filesystems repository and on 12.2.