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.
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.
use 1.11.8