I've recently been transitioning the various Raspberry Pis on my (wired) network over to use NFS root filesystems rather than mounting them from the SD cards, to avoid the assorted known problems with SD card life, add ease of backup, etc.
But now in the process of transitioning I've come to my couple of Pi Zero Ws, hence my question - can I mount an NFS root partition over wlan0 in the same way as I can over eth0 on my other Pis? I don't see any reason why, in theory,
console=serial0,115200 console=tty1 root=/dev/nfs nfsroot=172.16.0.24:/node-fs/endercam,vers=4.1,proto=tcp rw ip=dhcp rootfstype=nfs elevator=deadline rootwait
shouldn't work just as well for the Zero as for anything else, but presumably I will need to provide the WiFi network credentials somewhere in there, if it is possible?
(Note: I'm not currently trying to network boot the Pis; I have left the /boot partion on the SD card and boot off that, then mount the root filesystem over NFS, rather than do a full PXE boot. I understand that the latter isn't possible over WiFi anyway.)