Hans de Goede (j.w.r.degoede(a)hhs.nl) said:
So the idea is to patch all the initscripts which currently only get
started by default for NFS, to as the first thing in their start method
grep for nfs in /etc/fstab and if that is not found exit quietly without
doing anything further.
Ow. But... maybe.
Then to make manual mounting of nfs exports not in fstab work
properly,
the suggested fix is to patch mount to check if the necessary daemons are
running and if not start them. Since this will probably turn out to be
distro specific I think it would be best to have a checknfsdaemons shell
script in some standard location provided by the distro and let mount
call that before each nfs mount. (Oh the horror an additional entire fork
and exec on each nfs mount, hello people this is going over the network,
forget about the fork and exec cost, thank you).
install nfs <do horrible, nasty dirty stuff here> in a modprobe.d file
might do the trick.
Bill