From owner-freebsd-current@FreeBSD.ORG Sat Nov 22 11:34:44 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 B4CBF1065677 for ; Sat, 22 Nov 2008 11:34:44 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 5F66F8FC14 for ; Sat, 22 Nov 2008 11:34:44 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1L3ql9-000N8X-7K; Sat, 22 Nov 2008 13:34:43 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Luigi Rizzo In-reply-to: <20081122110008.GB12671@onelab2.iet.unipi.it> References: <20081122012351.GA98158@onelab2.iet.unipi.it> <20081122110008.GB12671@onelab2.iet.unipi.it> Comments: In-reply-to Luigi Rizzo message dated "Sat, 22 Nov 2008 12:00:08 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 22 Nov 2008 13:34:43 +0200 From: Danny Braniss Message-ID: 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 11:34:44 -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 ? > I did send a PR, but it must have gotten lost ... I think you should look at bootp.c, it's newer :-) I just updated it, because resently I discovered a nasty bug that was there from the beginning of time. BTW, I'm not that proud of the coding, but didn't want to make too many changes to bootp (it is ancient :-) and it was done when I was starting with intel/freebsd. > cheers > luigi chau danny