Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75323 - netmount confused on shutdown if hotplug networks and/or manual nfs mounts present
Summary: netmount confused on shutdown if hotplug networks and/or manual nfs mounts pr...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-22 08:31 UTC by Kevin F. Quinn (RETIRED)
Modified: 2004-12-22 15:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Changes such that netmount goes down before networks do (netmount.diff,2.19 KB, patch)
2004-12-22 08:39 UTC, Kevin F. Quinn (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin F. Quinn (RETIRED) gentoo-dev 2004-12-22 08:31:04 UTC
Networks on my system are started via hotplug/pcmcia depending on what docking station is attached, and nfs mounts are manually made depending on what network it's connected to.  The only nfs mounts in /etc/fstab are 'noauto'.

netmount in baselayout-1.9.4-r6 doesn't cope with this well; as netmount gets shutdown after hotplug/pcmcia/portmap do.


Reproducible: Always
Steps to Reproduce:
1.Configure networks for hotplug only (i.e. net.eth0 is not enabled on boot or default)
2.Boot up.
3.Once up, manually nfs mount something
4.Shutwown

Actual Results:  
netmount is confused, at best timing out when trying to unmount the nfs mounts,
as the network is already down.


Expected Results:  
Shutdown netmount before hotplug/pcmcia and any network interfaces are shut down.

Attachment to follow, showing the patch to netmount I've made that works for me
so far.
Comment 1 Kevin F. Quinn (RETIRED) gentoo-dev 2004-12-22 08:39:36 UTC
Created attachment 46634 [details, diff]
Changes such that netmount goes down before networks do

Basically makes use of "after" for the various services that should go down
after netmount.

1) If no nfs mounts occur automaticaly, does "after portmap nfs" instead of
"need portmap" and "use nfs"

2) Puts all the network stuff in "after", so that networks go down after mounts
are unmounted.	I think "need net" is not sufficient.  Probably not the neatest
way to do this, but once it worked I stopped fiddling with it :)

3) Also, perhaps unnecessarily, puts "hotplug pcmcia" in "after"

FWIW it also adds 'cifs' to the rcfilesystems stuff - I believe this may
already be covered on other bugs.
Comment 2 SpanKY gentoo-dev 2004-12-22 15:33:28 UTC
use 1.11.8