commit: 205135d844f76de534417a67235bfcf9ec4eecca
Author: Guido Jäkel <g.jaekel <AT> dnb <DOT> de>
AuthorDate: Wed Jun 20 08:34:24 2018 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Mar 1 05:52:39 2019 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=205135d8
remove NFS rsize/wsize options from default
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=...,<options>", 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()" ( <AT>
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.
Signed-off-by: Guido Jäkel <G.Jaekel <AT> DNB.DE>
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
defaults/initrd.defaults | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/defaults/initrd.defaults b/defaults/initrd.defaults
index 924bdea..8ef8d3c 100755
--- a/defaults/initrd.defaults
+++ b/defaults/initrd.defaults
@@ -81,7 +81,7 @@ overlayfs_modules_dir=mnt/cdrom
LOOPS='/livecd.loop /zisofs /livecd.squashfs /image.squashfs /livecd.gcloop'
-DEFAULT_NFSOPTIONS="ro,nolock,rsize=1024,wsize=1024"
+DEFAULT_NFSOPTIONS="ro,nolock"
# HWOPTS is the list of ALL options that take do/no prefixes, almost all of
# which match a MODULES_* variable; it is ALSO the order of evaluation.