From owner-freebsd-stable@FreeBSD.ORG Sun May 14 01:30:26 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DA8D16A403 for ; Sun, 14 May 2006 01:30:26 +0000 (UTC) (envelope-from paul.koch@statseeker.com) Received: from wally.statseeker.com (wally.statscout.com [203.39.101.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id A655643D48 for ; Sun, 14 May 2006 01:30:24 +0000 (GMT) (envelope-from paul.koch@statseeker.com) Received: from localhost (localhost [127.0.0.1]) by wally.statseeker.com (8.13.3/8.13.3) with ESMTP id k4E1UN7k063363 for ; Sun, 14 May 2006 11:30:23 +1000 (EST) (envelope-from paul.koch@statseeker.com) Received: from wally.statseeker.com ([127.0.0.1]) by localhost (wally.statseeker.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 62511-07 for ; Sun, 14 May 2006 11:30:16 +1000 (EST) Received: from speedy (CPE-203-51-255-173.qld.bigpond.net.au [203.51.255.173]) (authenticated bits=0) by wally.statseeker.com (8.13.3/8.13.3) with ESMTP id k4E1UEUF063357 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Sun, 14 May 2006 11:30:15 +1000 (EST) (envelope-from paul.koch@statseeker.com) From: Paul Koch To: freebsd-stable@freebsd.org Date: Sun, 14 May 2006 11:30:04 +1000 User-Agent: KMail/1.8 References: <200605051733.27568.paul.koch@statseeker.com> In-Reply-To: <200605051733.27568.paul.koch@statseeker.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605141130.04582.paul.koch@statseeker.com> X-Virus-Scanned: amavisd-new at statseeker.com Subject: Re: Can't select/install kernels in custom install.cfg - 6.1RC2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul.koch@statseeker.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2006 01:30:26 -0000 On Fri, 5 May 2006 05:33 pm, Paul Koch wrote: > Hi, > > I have just upgraded some of our product build machines to 6.1RC2 and > I am having a few problems getting a custom install.cfg to work with > the way sysinstall now selects/installs kernels. I am trying to > select a custom distribution set using something like the following: > > dists=base kernels > distKernel=GENERIC SMP > distSetCustom > > base gets installed fine but no kernels ever get installed. If I set > any of the standard distribution sets (eg. distSetMinimal, or > distSetEverything), then one or both of GENERIC/SMP kernels get > installed. > > I am a bit lost. Did some googling, but couldn't fine anything > relevent. > > Paul. Managed to work this out by reading sysinstall code. It is quite simple, but not so obvious from the manual page. There appears to be two methods of selecting which dists to install: 1. Setting the distributions "by name" using something like: ... dists=base lib32 GENERIC SMP distSetCustom ... installCommit The kernels have now been separated from "base", into their own dist, but you don't specify "dists=base kernels", instead you have to specify the subdistribution names. Each of the dists values are looked up and the appropriate bit set for the variables below. 2. Setting the distributions by setting several bit field environment variables: ... distMain=8193 distSRC=0 distX11=0 diskKernel=3 ... installCommit The above variables are bit fields as per sysinstall/dist.h, but must be converted to decimal because they are read using atoi(3). Both methods work fine, but you can't select "all" within subdistribution using method 1 without putting every subdistribution name in (eg. for src - sbase scontrib scrypt ...), where as in method 2 you can just turn all bits on (eg. 0xFFFFF, but in decimal). Best to refer to dist.h. Paul.