nfsroot: Default mount option should ask for built-in NFS version
authorHelge Deller <deller@gmx.de>
Fri, 16 Oct 2020 10:13:00 +0000 (12:13 +0200)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 2 Nov 2020 15:29:03 +0000 (10:29 -0500)
commit3fc2bfa365311c6ef3e4411437786a54a911d9a9
tree866b2dface9d4f3890c15a4814e1ee7574239d9b
parent3cea11cd5e3b00d91caf0b4730194039b45c5891
nfsroot: Default mount option should ask for built-in NFS version

Change the nfsroot default mount option to ask for NFSv2 only *if* the
kernel was built with NFSv2 support.
If not, default to NFSv3 or as last choice to NFSv4, depending on actual
kernel config.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfsroot.c