From owner-freebsd-stable@FreeBSD.ORG Mon Jan 21 16:07:55 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1576516A418 for ; Mon, 21 Jan 2008 16:07:55 +0000 (UTC) (envelope-from royce@alaska.net) Received: from hermes.acsalaska.net (hermes.acsalaska.net [209.112.173.230]) by mx1.freebsd.org (Postfix) with ESMTP id D9A3A13C478 for ; Mon, 21 Jan 2008 16:07:54 +0000 (UTC) (envelope-from royce@alaska.net) Received: from [192.168.254.100] (209-112-210-212-rb1.nwc.dsl.dynamic.acsalaska.net [209.112.210.212]) by hermes.acsalaska.net (8.14.1/8.14.1) with ESMTP id m0LG7rBW005765; Mon, 21 Jan 2008 07:07:53 -0900 (AKST) (envelope-from royce@alaska.net) Message-ID: <4794C35A.10405@alaska.net> Date: Mon, 21 Jan 2008 07:07:54 -0900 From: Royce Williams User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Drew Weaver References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ACS-Spam-Status: no X-ACS-Scanned-By: MD 2.63; SA 3.2.3; spamdefang 1.122 Cc: "'freebsd-stable@freebsd.org'" Subject: Re: Manual/Wiki or other documentation for PXE install mainly install.cfg? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 16:07:55 -0000 Drew Weaver wrote, on 1/21/2008 5:08 AM: > Hi there, I’ve seen about a dozen different example files for the > install.cfg used to feed sysinstall automatic configuration data > for pxe installations but I cant figure out where people are > getting the options they’re using from. > > Is there a manual, wiki or otherwise documentation on what is > “valid” to put into this file? Not that I'm aware of, other than the source itself. > Also is this file at all scriptable? Not that I am aware of. > We would like to be able to use the same install.cfg on all of our > machines but some of them have different NICs (i.e.) some have rl0, > fxp0 can we use if statements to detect? What I've seen most people doing is using the post-install features to call a script after everything else is done. Unfortunately, this doesn't give you scriptable control over the NIC used. I pregenerate an appropriate install.cfg based on system type, and then create a DHCP group (I use isc-dhcpd) for all MACs of that type. I associate that group with a slightly different nfsroot (containing the appropriate config file) for that family of machine. It's not pretty, but it works. > Thanks in advance for any tips/tricks! I found this post by Ceri Davies to be helpful: http://typo.submonkey.net/articles/2006/02/12/having-a-bad-day Royce -- Royce D. Williams - IP Engineering, ACS http://www.tycho.org/royce/ - PGP: 3FC087DB/1776A531 It is vain to do with more what can be done with fewer. - Occam