I've given up trying to get the Pi Zero to use NFS version 4.
Instead, I moved all it's services to a 4B, that can network boot using NFS version 4.1, WITHOUT requiring a DHCP server (because it runs the DHCP server).
For anyone else wanting to know how to do this:
Disabling initramfs in /boot/firmware/config.xml is necessary to use an NFS version other than version 3 at boot:
See: Raspberry Pi bootloader configuration
Instead, I moved all it's services to a 4B, that can network boot using NFS version 4.1, WITHOUT requiring a DHCP server (because it runs the DHCP server).
For anyone else wanting to know how to do this:
Code:
$ rpi-eeprom-configTFTP_IP=<TFTP server's IPv4 address>TFTP_PREFIX=1TFTP_PREFIX_STR=<TFTP Boot folder> (, e.g. raspberry-pi-01/)CLIENT_IP=<device's IPv4 address>SUBNET=<Subnet mask>Code:
****line breaks added for readability****$ cat /boot/firmware/cmdline.txt root=/dev/nfs nfsroot=<NFS server's IPv4 address>:<NFS mount path>,vers=4.1 rw rootwait ip=<device's IPv4 address>:<NFS server's IPv4 address>:<gateway's IPv4 address>:<Subnet mask>:<host name>:<network device, e.g. eth0>:<autoconf options, on, off or dhcp> cfg80211.ieee80211_regdom=<WiFi region>Code:
#auto_initramfs=1Statistics: Posted by jeremym — Fri Sep 26, 2025 8:47 am