From nobody@FreeBSD.org  Tue Dec 13 23:18:09 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1F30916A4CD
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Dec 2005 23:18:08 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 879C443D82
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Dec 2005 23:18:06 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jBDNI6nW013372
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Dec 2005 23:18:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jBDNI6fu013371;
	Tue, 13 Dec 2005 23:18:06 GMT
	(envelope-from nobody)
Message-Id: <200512132318.jBDNI6fu013371@www.freebsd.org>
Date: Tue, 13 Dec 2005 23:18:06 GMT
From: Daniel Feenberg <feenberg@nber.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pxeboot misses ${class} parameter when booting from dhcp (contrary to "man diskless")
X-Send-Pr-Version: www-2.3

>Number:         90368
>Category:       kern
>Synopsis:       [pxeboot] pxeboot misses ${class} parameter when booting from dhcp (contrary to "man diskless")
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 13 23:20:03 GMT 2005
>Closed-Date:    Thu Jul 07 07:09:40 UTC 2011
>Last-Modified:  Thu Jul 07 07:09:40 UTC 2011
>Originator:     Daniel Feenberg
>Release:        6.0 RELEASE  #0
>Organization:
National Bureau of Economic Research
>Environment:
FreeBSD agebulk2.nber.org 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Dec  1 05:39:4
2 UTC 2005     root@agestore2.nber.org:/usr/obj/usr/src/sys/GENERIC  i386       
>Description:
The man page for "diskless" describes using bootd or dhcpd to distribute
to clients a class name which specifies certain files to override defaults
in the client /etc and /var directories. 

However, pxeboot does not support the bootp.kernel_cookie (T134) feature
required for this to function with dhcp. Here is the relevant comment
from net@freebsd.org by Doug White:

 From my reading of the source, vendor-option 134 is only parsed by the
 nfsclient bootp code which is activated with the BOOTP kernel option.  If
 you want to use that feature via PXE then pxe_open() in
 src/sys/boot/i386/libi386/pxe.c needs modification, specifically to parse
 the array in bootplayer.d.
 
 pxeboot passes its information via kenv and would require a bit of code
 hidden somewhere to convert it into a sysctl to maintain compatibility
 with the BOOTP feature.
 --
 Doug White                    |  FreeBSD: The Power to Serve
 dwhite@gumbysoft.com
>How-To-Repeat:
See above.
>Fix:
I suppose the "bug" could be fixed by changing the documentation or the
code but it would be a valuable feature if supported as documented.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Thu Jul 7 07:09:10 UTC 2011 
State-Changed-Why:  

1. Old, unsupported FreeBSD version 
2. Likely OBE 



Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Thu Jul 7 07:09:10 UTC 2011 
Responsible-Changed-Why:  

I closed it 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90368 
>Unformatted:
