Bug 92297

Summary: pcmcia restart and netfs restart in wrong order
Product: [Retired] Red Hat Linux Reporter: Jón Fairbairn <jon.fairbairn>
Component: apmdAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: p.van.egdom, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-03-16 22:21:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Jón Fairbairn 2003-06-04 18:03:41 UTC
Description of problem:
If I suspend my laptop, nfs mounts are not restored on resume
because the network is connected via a pcmcia network card
and /etc/sysconfig/apm-scripts/apmscript attempts to start netfs
before pcmcia.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
0. put PCMCIARESTART="yes" and NETFS_RESTART="yes" in
1. put an nfs mount in /etc/fstab
2. mount it
3. apm --suspend
4. resume.  
Actual results:

netfs reports no route to host and the nfs mount doesn't happen

Expected results:
the nfs mount mentioned in /etc/fstab should be mounted after 

Additional info:

        # Restore network and PCMCIA
        [ "$NETFS_RESTART" = "yes" ] && /etc/rc.d/init.d/netfs start
        if [ "$PCMCIARESTART" = "yes" ] ; then
                /sbin/cardctl insert
                /sbin/cardctl resume

in /etc/sysconfig/apm-scripts/apmscript to

        # Restore network and PCMCIA
        if [ "$PCMCIARESTART" = "yes" ] ; then
                /sbin/cardctl insert
                /sbin/cardctl resume
        [ "$NETFS_RESTART" = "yes" ] && /etc/rc.d/init.d/netfs start

cures the problem for me. I can't think of a circumstance where this change
would break something (if you have a pcmcia network card it helps, if you don't
it looks harmless), but I don't know enough about apm to be sure

Comment 1 Miloš Komarčević 2004-05-21 11:25:22 UTC
Not just netfs, the whole network needs to be restarted after pcmcia
as well, right now it is before in FC2. I don't have my eth0 after
resume on an IBM TP600E, and I have PCMCIARESTART="yes" and
NET_RESTART="yes" in /etc/sysconfig/apmd

Same goes for init, any reason we can't finally have pcmcia start
before the network by default (which up to now fails unnecessarily and
drops to a detailed view during the nice rhgb screen)?

Comment 2 Bill Nottingham 2005-03-16 22:21:51 UTC
Changed in 3.2.2-1