I'm trying to mount a local directory with NFS (see why). My /etc/exports contain this line:
/var/www/mysite localhost(rw,sync,no_subtree_check,all_squash,anonuid=33,anongid=33)
and this in /etc/fstab:
localhost:/var/www/mysite /home/daniel/mysite nfs4 defaults 0 0
This works perfectly well when I have a network, however if I restart the machine while the network is down it won't work.
I've tried replacing localhost with 127.0.0.1 or with 127.0.1.1 but they didn't work either. Any ideas?