I found what's going on, it looks to me like there is another race condition between upstart and systemd scripts, sometimes rc.local gets to mount some of my NFS shares but other times it doesn't. The first thing I tried was doing a loop until ifconfig was showing a valid address but it didn't work either, at the time network card got the IP address the route was not present, so I've done a loop waiting for the route to be ready, and then mount the volumes.
aux=0 while [ $aux -eq 0 ]; do route -n > /tmp/network if grep "192.168.40.1" /tmp/network; then aux=1; fi done echo "mounting home" >> /tmp/network mount /home 2>> /tmp/network echo "mounting data" >> /tmp/network mount /data 2>> /tmp/network echo "mounting usr" >> /tmp/network mount /usr/local 2>> /tmp/network exit 0 And having /etc/fstab not to mount at startup. fourier:/export/data /data nfs vers=3,rsize=32768,wsize=32768,nosuid,soft,noauto 0 0 But this is a very quick and dirty solution, any workaround more gentle? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1118447 Title: Race condition with network and NFS mounts causes boottime hang To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1118447/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs