freebsd-dev/sys/nfs
Alfredo Dal'Ava Junior 3cb9f1976c 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
2022-05-31 16:07:27 -03:00
..
bootp_subr.c nfs: skip bootpc when vfs.root.mountfrom is other than nfs 2022-05-31 16:07:27 -03:00
krpc_subr.c krpc_call: eliminiate write only variable nam 2022-04-04 22:31:00 -06:00
krpc.h
nfs_diskless.c nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfs_kdtrace.h nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfs_lock.h
nfs_mountcommon.h
nfs_nfssvc.c nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfsdiskless.h
nfsproto.h nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
nfssvc.h
xdr_subs.h nfs: don't truncate directory cookies to 32-bits in the NFS server 2021-12-15 20:54:57 -07:00