Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2000 22:59:54 -0700 (PDT)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        freebsd-stable@freebsd.org
Subject:   Proposed small change to /usr/src/sys/boot/i386/loader/Makefile
Message-ID:  <200010270559.e9R5xsZ85008@earth.backplane.com>

next in thread | raw e-mail | index | archive | help
I'd like to change this:

# Enable PXE TFTP or NFS support, not both.
#CFLAGS+=        -DLOADER_TFTP_SUPPORT
CFLAGS+=        -DLOADER_NFS_SUPPORT

To this:

# Enable PXE TFTP or NFS support, not both.
.if defined(LOADER_TFTP_SUPPORT)
CFLAGS+=        -DLOADER_TFTP_SUPPORT
.else
CFLAGS+=        -DLOADER_NFS_SUPPORT
.endif


This way I can force pxeboot to use TFTP rather then NFS simply by
setting LOADER_TFTP_SUPPORT=YES in my /etc/make.conf.  The problem I
am facing with the default pxeboot is that I can't seem to get it
to work with a BOOTP kernel whos image is located somewhere other
then the NFS root.  That is, it tries to load NFSROOT:/kernel (which
is the server's kernel, not the diskless client's kernel) when
I really want it to load /tftpboot/kernel and then mount NFSROOT:/.

The default is still to compile up the NFS version of pxeboot.  This
mod simply allows one to add a make.conf variable to get buildworld
to compile the other version of pxeboot.

Any objections to committing this for the 4.x release?

					-Matt




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010270559.e9R5xsZ85008>