From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 13 23:20:25 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D57A16A41F for ; Tue, 13 Dec 2005 23:20:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CFA643D75 for ; Tue, 13 Dec 2005 23:20:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBDNK3HG014069 for ; Tue, 13 Dec 2005 23:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBDNK32m014059; Tue, 13 Dec 2005 23:20:03 GMT (envelope-from gnats) Resent-Date: Tue, 13 Dec 2005 23:20:03 GMT Resent-Message-Id: <200512132320.jBDNK32m014059@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Daniel Feenberg Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F30916A4CD for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/90368: pxeboot misses ${class} parameter when booting from dhcp (contrary to "man diskless") X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 23:20:25 -0000 >Number: 90368 >Category: kern >Synopsis: pxeboot misses ${class} parameter when booting from dhcp (contrary to "man diskless") >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 13 23:20:03 GMT 2005 >Closed-Date: >Last-Modified: >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: >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: >Unformatted: >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