Date: Fri, 8 Dec 2006 21:52:07 +0200 (EET) From: Andrey Russev <ruan@univ.kiev.ua> To: FreeBSD-gnats-submit@FreeBSD.org Subject: i386/106493: [ patch ] pxeboot uses /pxeroot instead of / Message-ID: <20061208195634.BA6DF43C9D@mx1.FreeBSD.org> Resent-Message-ID: <200612082000.kB8K0QhD019937@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 106493 >Category: i386 >Synopsis: [ patch ] pxeboot uses /pxeroot instead of / >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 08 20:00:25 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Andrey Russev >Release: FreeBSD 6.0-RELEASE-p15 i386 >Organization: >Environment: System: FreeBSD 6.0-RELEASE-p15 i386 isc-dhcp3-server-3.0.3 >Description: When boot server exports its own root as a rootpath to the client, the latter falls back to /pxeroot >How-To-Repeat: 1. Enable tftpd 2. Copy /boot/pxeboot to the tftpd root (/tftpboot/) 3. Add lines filename "pxeboot"; option root-path "/"; to the dhcpd.conf 4. Restart dhcpd 5. Try to boot some machine over the network >Fix: Workaround: option root-path "//"; --- pxe.c.diff begins here --- --- pxe.c Mon Apr 18 00:38:22 2005 +++ /tmp/pxe.c Thu Dec 7 19:06:14 2006 @@ -282,7 +282,7 @@ bootp(pxe_sock, BOOTP_PXE); if (rootip.s_addr == 0) rootip.s_addr = bootplayer.sip; - if (!rootpath[1]) + if (!rootpath[0]) strcpy(rootpath, PXENFSROOTPATH); for (i = 0; rootpath[i] != '\0' && i < FNAME_SIZE; i++) --- pxe.c.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061208195634.BA6DF43C9D>