Do not attempt to make an NFS rpc call if using tftp
PR: kern/91720 Submitted by: Ruben Kerkhof
This commit is contained in:
parent
45650f529d
commit
671a6b8e9a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172591
@ -10,6 +10,13 @@ SRCS= biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
|
||||
i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
|
||||
smbios.c time.c vidconsole.c amd64_tramp.S
|
||||
|
||||
# Enable PXE TFTP or NFS support, not both.
|
||||
.if defined(LOADER_TFTP_SUPPORT)
|
||||
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
||||
.else
|
||||
CFLAGS+= -DLOADER_NFS_SUPPORT
|
||||
.endif
|
||||
|
||||
BOOT_COMCONSOLE_PORT?= 0x3f8
|
||||
CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
|
||||
|
||||
|
@ -335,8 +335,10 @@ pxe_close(struct open_file *f)
|
||||
if (pxe_opens > 0)
|
||||
return(0);
|
||||
|
||||
#ifdef LOADER_NFS_SUPPORT
|
||||
/* get an NFS filehandle for our root filesystem */
|
||||
pxe_setnfshandle(rootpath);
|
||||
#endif
|
||||
|
||||
if (pxe_sock >= 0) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user