I'm trying to netboot some Rpi 3B+'s, I have it working if I put the nfs server on another rpi, but if I use the same configuration, just put the nfs server on a Centos machine with xfs file system, I get messages saying it failed to mount the filesystem. The machine still boots, and I eventually get a login, but it won't let me login, I'm assuming because it can't find /etc/passwd. Is there a way to specify what kind of file system should be mounted over nfs, or does that even matter?
My cmdline.txt looks like this:
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/nfs nfsroot=10.130.40.62:/exports/client1,tcp,v3 ip=dhcp rootfstype=xfs rootwait elevator=deadline
I have also set to wait for network on boot in raspi-config. If I change the rootfstype in the cmdline.txt, it appears to not change anything, and the only difference for when I boot from another rpi being the nfs server is changing the ip address and the root folder to /nfs/client1. I have also installed xfsprogs in the filesystem at /exports/client1 or /nfs/client1, which are identical.
I would like to boot from an nfs on a larger server, since I plan to have many pi's booting from it and I think it might overwhelm one rpi to be the nfs for many others. Any ideas how to boot from a server with an xfs file system, other than converting it to ext4? Any help would be much appreciated!
Edit: I realized the reason it was not booting correctly was because the nfs directory had the wrong permissions, thus all the system files were not owned by root and that caused errors. I copied the files again and it seems to work now