From owner-freebsd-current@FreeBSD.ORG Sat Nov 22 10:55:36 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E382D106564A for ; Sat, 22 Nov 2008 10:55:36 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id 9EF698FC22 for ; Sat, 22 Nov 2008 10:55:36 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id E1ADB73098; Sat, 22 Nov 2008 12:00:08 +0100 (CET) Date: Sat, 22 Nov 2008 12:00:08 +0100 From: Luigi Rizzo To: Danny Braniss Message-ID: <20081122110008.GB12671@onelab2.iet.unipi.it> References: <20081122012351.GA98158@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: current@freebsd.org Subject: Re: RFC - per-host configuration of pxe booting X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2008 10:55:37 -0000 On Sat, Nov 22, 2008 at 12:09:21PM +0200, Danny Braniss wrote: > > [this mailing list is as good as anyone i guess... feel free > > to forward it if you believe there is a more appropriate forum] > > > > The goal of this email is to figure out how to load host-specific > > configurations from pxeboot -- maybe as simple as loading > > /boot/loader.conf.${hostname} and possibly something slightly more > > flexible that allows me to define machine 'classes' (e.g. based on > > similar hardware configurations etc.). > > > > why not use DHCP? you need it to boot the diskless anyways, and it can provide > a wealth of information. The code has been around for many years. > for example, in the dhcpd.conf: > option FBSD.ind1 "hw.msk.legacy_intr=1"; > option FBSD.ind2 "machdep.conspeed=115200"; > option FBSD.rc-conf4 "rc.ws" > these are placed, by bootp.c, in kenv. sure, DHCP is the intended transport for this information, however the support you mention is not yet in the source tree as far as i can tell. Perhaps you are referring to your patches at ftp://ftp.cs.huji.ac.il/users/danny/freebsd/diskless-boot/5.2-bootp.c.diffs ? cheers luigi