I tried to boot a switch via NFS from a machine running ubuntu 18.04. In barebox I was getting messages like:
NFS failed: Invalid argument
I managed to find a solution, the problem was that the server doesn’t support NFS v2 (even it is stated on
barebox’s site that it uses NFSv3 UDP https://www.barebox.org/doc/2014.08.0/filesystems/nfs.html).
If you encounter such problem you can check which versions of the NFS server your system supports by a command:
-2 +3 +4 +4.1 +4.2
if you see “-2” then please add the following line to the file /etc/default/nfs-kernel-server