When using PXE&NFSRoot, the Root-FS is mounted with a very small R/W-Size of 1k. This is a result of the DEFAULT_NFSOPTIONS. At the moment one can't override it by the "nfsroot" Kernel commanline option, because the additional options will be *appended* to the DEFAULT_NFSOPTIONS, but the mount command take the *first* occurence. Reproducible: Always Steps to Reproduce: Apply Kernel command line option nfsroot with additional mount parameter r/wsize. Actual Results: Given mount options for r/wsize by the kernel command line parameter nfsroot will be ignored. Expected Results: Given mount options for r/wsize by the kernel command line parameter nfsroot will be respecded. I suggest to completely remove "rsize=1024,wsize=1024" from the DEFAULT_NFSOPTIONS: The kernel/mount default is "unlimited" and the concrete values will be with negotiated with the NFS server. If optional values for {r,w}size are passed to the kernel commandline parameter "nfrsoot=...,", this additinal options are appended to the resulting mount options. But (at least) for {r,w}size, the first occurrence strikes; i.e. the values passed via the commandline are ignored in fact. As a more complex alternative, the function "findnfsmount()" (@ initrd.scripts, 569ff.) may be rewritten to parse and kick out double-occurences of options. Background: I run into this issue booting a diskless server; using PXE for the kernel and initramfs and NFS for the rootfs. I suggested a patch as https://github.com/gentoo/genkernel/pull/4
Merged via https://github.com/gentoo/genkernel/pull/4