I just upgraded from 11.0 to 11.1 to get the memtest function (building a kernel for a hardware diagnostic process). In 11.0 I was PXE booting and NFS mounting root just fine. In 11.1 the CONFIG_ROOT_NFS line isn’t even in .config anymore!
Even adding that line manually didn’t help as somewhere in the build process it is getting removed and nfsroot.c wasn’t even getting compiled. I tried forcing nfsroot.c to build by editing the Makefile in fs/nfs and also commenting out wherever I saw a reference to the ROOT_NFS feature (ipconfig.c, I think)… still no help.
Does anyone know if this was removed intentionally and and perhaps why? (I’m relatively new to kernel tweaks so I apologize if I’m missing something obvious).
Thanks - will do. I also pulled my head out and redid the search for “ROOT_NFS” and found a couple of instances that I’d missed (in init/do_mounts.c)… fixing those now lets me successfully do the nfsroot mount.
I am interested to see what replaced nfsroot - as I’ll need something other than local disk to get this project going.
I think the favoured method is for userspace code in an initrd to do a NFS mount and then do a switch_root. Have a look at how LTSP does it, for example.