From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3D8C6138334 for ; Fri, 1 Mar 2019 05:55:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E5589E0864; Fri, 1 Mar 2019 05:55:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB24BE0864 for ; Fri, 1 Mar 2019 05:55:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C1CBE335CEE for ; Fri, 1 Mar 2019 05:55:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 46BC9266 for ; Fri, 1 Mar 2019 05:55:11 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1551419559.205135d844f76de534417a67235bfcf9ec4eecca.robbat2@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/initrd.defaults X-VCS-Directories: defaults/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 205135d844f76de534417a67235bfcf9ec4eecca X-VCS-Branch: master Date: Fri, 1 Mar 2019 05:55:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 983e42c7-8824-415a-9930-f4d360f9441b X-Archives-Hash: 7db5f5b8580ab63e71245417fea9422a commit: 205135d844f76de534417a67235bfcf9ec4eecca Author: Guido Jäkel dnb de> AuthorDate: Wed Jun 20 08:34:24 2018 +0000 Commit: Robin H. Johnson gentoo 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=...,", 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. Signed-off-by: Guido Jäkel DNB.DE> Signed-off-by: Robin H. Johnson 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.