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

(cherry picked from commit 3cb9f1976c260821e43e6eae9d46e4ec97a8d4f1)

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
rG6d162b90b54b: stand: Unbreak FAT32 in loader
Branches
Unknown
Tags
Unknown