Systemd mount.nfs fails: Network is unreachable on Ubuntu 16.04

I've setup an NFS mount in the /etc/fstab file of an Ubuntu 16.04.6 machine.
The NFS fails at every boot, I noticed that when the Unity Greeter comes up the network icon on the top right of the screen shows the network as disconnected, and after 5 seconds it starts the connection process and succeeds. At this point, if I login and run mount -a as a superuser, it works just fine. I have tried a bunch of options to force systemd to wait for network, but nothing works... How do I force NetworkManager to connect before I get to the greeter? I don't mind the extra boot time delay.

1 Answer

I finally found a workaround: It seems to be related to the way the DHCP works on Ubuntu, so I disabled the renaming of the Ethernet Interfaces at boot, thus DHCP resolutions was faster.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like