Bug 870588

Summary: pm-utils 06autofs doesn't restart automount on resume
Product: [openSUSE] openSUSE 13.1 Reporter: Forgotten User TWWtg_TXhn <forgotten_TWWtg_TXhn>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: VERIFIED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 13.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User TWWtg_TXhn 2014-03-27 11:49:43 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0

automounter is not restarted when the system resumes from sleep. I believe this is because /usr/lib/pm-utils/sleep.d/06autofs contains the line:

checkproc NetworkManager || restartservice autofs

whereas it should say:

checkproc NetworkManager && restartservice autofs

The latter works correctly when tested on my laptop.

With installed 06autofs file the autofs service will never be restarted on resume when NetworkManager is running (which it usually is on a laptop) whereas it *should* be restarted on resume once NetworkManager is running.

Reproducible: Always

Steps to Reproduce:
1. Boot system including automount
2. Suspend to ram / sleep (close laptop lid)
3. Resume from sleep (open laptop)


Actual Results:  
automount will not be running - it hasn't been restarted

Expected Results:  
automount should be running
Comment 1 Forgotten User TWWtg_TXhn 2014-03-27 13:27:18 UTC
Not a bug, and 06autofs script was correct. Problem is that NetworkManager-dispatcher.service needs to be running when automount is used. systemd doesn't start this service automatically - it has to be manually enabled.

Perhaps this service should be needed by autofs in systemd?

Closing this bug.