An alternate solution - instead of waiting a fixed time - is to modify
/etc/network/if-up.d/mountnfs to include a runlevel-check:
RUNLEVEL=`runlevel`
while [ "${RUNLEVEL}" = "unknown" ]; do
if ps aux | grep -q " sh /etc/rcS.d/S45waitnfs.sh start$";
then
# pidof doesnt work if waitnfs is started "sh /etc/.../S45waitnfs.sh"
break
fi
sleep 0.1
RUNLEVEL=`runlevel`
done
This will prevent the mountnfs script from being run to early, but also
abort if the waitnfs script is running. This prevents collisions between
these two scripts.
** Attachment added: "modified /etc/network/if-up.d/mountnfs"
http://launchpadlibrarian.net/9307236/mountnfs
--
NFS mounts on clients don't appear in `mount` or `df` output
https://bugs.launchpad.net/bugs/44836
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs