HomeFreeBSD

nfs: skip bootpc when vfs.root.mountfrom is other than nfs

Description

nfs: skip bootpc when vfs.root.mountfrom is other than nfs

If "vfs.root.mountfrom" is set and the value is something other
than "nfs:*", it means the user doesn't want to mount root via nfs,
there's no reason to continue with bootpc

This fixes the powerpcspe kernel (MPC85XXSPE) that's compiled with
BOOTP_NFSROOT by default and gets stuck on bootpc/dhcp request loop
when no DHCP server is available on the network, even when user
specifies a local disk via "vfs.root.mountfrom" kernel parameter.

Reviewed by: imp
MFC after: 2 weeks
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D35098

Details

Provenance
alfredoAuthored on May 31 2022, 7:03 PM
Reviewer
imp
Differential Revision
D35098: nfs: skip bootpc when vfs.root.mountfrom is other than nfs
Parents
rG9792c7d3eb41: nfscl: Enable support for the Lookup+Open RPC
Branches
Unknown
Tags
Unknown