So, this method to use NFS instead of iscsi for netboot is much slower (about 1-2 min vs. instant).
This is my previous and new ipxe files:
Previous:
Shell session
#!ipxe
echo Ready for iscsi boot !
:retry_sanboot
sanboot iscsi:<server IP>::::<iscsi target IQN> goto retry_sanboot
``New:
Code
#!ipxe
echo Ready for TFTP and NFS boot!
set nfs-server <NFS server IP>
set libreelec-version 11.0.3
set nfs-root /export/ipxeNFS/
set archl x86_64
set libreelec-storage-dir ${nfs-server}:${nfs-root}libreelec-storage/
echo Booting LibreELEC Generic ${libreelec-version} from NFS ${nfs-server}
set base-url LibreELEC-Generic.${archl}-${libreelec-version}
echo NFS path is: ${nfs-server}:${nfs-root}${base-url}/target
kernel KERNEL
initrd SYSTEM
imgargs KERNEL ip=dhcp boot=NFS=${nfs-server}:${nfs-root}${base-url}/target disk=NFS=${libreelec-storage-dir} overlay
boot || goto failed
:failed
echo Booting failed, dropping to shell
goto shell
Display More