From owner-freebsd-current@FreeBSD.ORG Sat Nov 22 09:27:13 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 389C21065674 for ; Sat, 22 Nov 2008 09:27:13 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2]) by mx1.freebsd.org (Postfix) with ESMTP id ADD638FC13 for ; Sat, 22 Nov 2008 09:27:12 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (p5495728E.dip.t-dialin.net [84.149.114.142]) by acme.spoerlein.net (8.14.2/8.14.2) with ESMTP id mAM9R9Gv027573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 22 Nov 2008 10:27:11 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.3/8.14.3) with ESMTP id mAM9QxPS002672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 22 Nov 2008 10:26:59 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: (from uqs@localhost) by roadrunner.spoerlein.net (8.14.3/8.14.3/Submit) id mAM9Qvff002671; Sat, 22 Nov 2008 10:26:57 +0100 (CET) (envelope-from uspoerlein@gmail.com) Date: Sat, 22 Nov 2008 10:26:57 +0100 From: Ulrich Spoerlein To: Luigi Rizzo Message-ID: <20081122092657.GC1394@roadrunner.spoerlein.net> Mail-Followup-To: Luigi Rizzo , current@freebsd.org References: <20081122012351.GA98158@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081122012351.GA98158@onelab2.iet.unipi.it> User-Agent: Mutt/1.5.18 (2008-05-17) 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 09:27:13 -0000 On Sat, 22.11.2008 at 02:23:51 +0100, Luigi Rizzo wrote: > 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.). > > loader_conf_files="/boot/device.hints /boot/device.hints.${dhcp.host-name} /boot/loader.conf /boot/loader.conf.${dhcp.host-name}" > > It might be useful to let dhcp pass more parameters to pxeboot > so e.g. we can expand it to a 'machine class' which can be used > for multiple machines. This should be relatively trivial to impelemnt, > but it requires modifications to the pxeboot binary -- no big deal > since this is something centralized. Hi Luigi, while the dhcp host-name is a good start, you should definitely add a dhcp class-name (vendor-class-identifier) to make it useful for booting a whole range of thin clients, for example. Cheers, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt.