From owner-freebsd-stable Thu Oct 26 23: 0: 2 2000 Delivered-To: freebsd-stable@freebsd.org Received: from earth.backplane.com (placeholder-dcat-1076843399.broadbandoffice.net [64.47.83.135]) by hub.freebsd.org (Postfix) with ESMTP id C0E1737B4C5 for ; Thu, 26 Oct 2000 22:59:57 -0700 (PDT) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id e9R5xsZ85008; Thu, 26 Oct 2000 22:59:54 -0700 (PDT) (envelope-from dillon) Date: Thu, 26 Oct 2000 22:59:54 -0700 (PDT) From: Matt Dillon Message-Id: <200010270559.e9R5xsZ85008@earth.backplane.com> To: freebsd-stable@freebsd.org Subject: Proposed small change to /usr/src/sys/boot/i386/loader/Makefile Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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