Bug 568303

Summary: WLAN not started before NFS client
Product: [openSUSE] openSUSE 11.2 Reporter: Erik Brakkee <erik>
Component: NetworkAssignee: Marius Tomaschewski <mt>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: config for my WLAN (without the password)

Description Erik Brakkee 2010-01-05 12:14:37 UTC
Created attachment 334982 [details]
config for my WLAN (without the password)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091210 SUSE/2.0.1-1.1.1 SeaMonkey/2.0.1

I have a laptop running opensuse 11.2. This laptop connects to my home network through a wireless LAN and mounts a NFS filesystem from my linux server (opensuse 11.1). 

I have configured the WLAN interface correctly and specified onboot for it to be started. 

However, at boot time, it is not started by /etc/init.d/network but by /etc/init.d/network-remotefs. And the latter script is started after the NFS client is started. Therefore when I boot up the laptop the NFS mounts are not there after startup. 

To work around this, I have edited the network script and disabled the network-remotefs script. 

I modiified the network script to didable the FS_FILTER settings: 

if [ -n "$INIT_VERSION" -a -z "$YAST_IS_RUNNING" ] ; then
        MODE=onboot
        # FS_FILTER=localfs
fi

This fixes the problem but in my opinion it is a bug. Either the nfs client should be started after the network-remotefs or the network script should respect the onboot setting. 



Reproducible: Always

Steps to Reproduce:
1. Create a fstab with a NFS mount in it (to be mounted by WLAN). 
2. Configure a WLAN with onboot setting
3. Go to runlevel 1 (Init 1) and then back to runlevel 3 

Actual Results:  
The NFS filesystem specified in /etc/fstab is not mounted. 

Expected Results:  
The NFS filesystem in /etc/fstab should be mounted. 

Given this problem Major severity because regular users will have great difficulty in getting this to work. It worked fine in opensuse 10.3.
Comment 2 Marius Tomaschewski 2010-01-14 13:38:42 UTC
The /etc/init.d/nfs script implements $remote_fs (see /etc/insserv.conf)
and is intended to provide /usr over NFS (mandatory requirement :-/ ).

All wireless utilities and most required libraries as well as the Network
Manager are installed in /usr and intentionally delayed to start via the
wrapper script network-remotefs that is started after the nfs script.

Workaround for everybody that is not using /usr on NFS:
  In case of ifup: - use autofs, but see bug 522224
                     (add network-remotefs to ShouldStart and
                      ShouldStop until the fix is available).
                   - configure using "man 5 ifservices"
                     (link to nfs bellow of ifservices-wlan0)
  In case of   NM: use /etc/NetworkManager/dispatcher.d/ scripts

More about in bug 557836, bug 487190, ...

*** This bug has been marked as a duplicate of bug 557836 ***
Comment 3 Marius Tomaschewski 2010-01-14 13:41:09 UTC
(In reply to comment #2)
> The /etc/init.d/nfs script implements $remote_fs (see /etc/insserv.conf)
> and is intended to provide /usr over NFS (mandatory requirement :-/ ).
...

in another words: start via nfs init script is not supported over
wireless interfaces.