From owner-freebsd-stable@FreeBSD.ORG Fri Mar 24 16:57:40 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 A36B016A400 for ; Fri, 24 Mar 2006 16:57:40 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 318A943D75 for ; Fri, 24 Mar 2006 16:57:40 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.4/8.12.6) with ESMTP id k2OGvdjN013491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 24 Mar 2006 08:57:39 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <44242503.7070909@errno.com> Date: Fri, 24 Mar 2006 08:57:39 -0800 From: Sam Leffler User-Agent: Thunderbird 1.5 (X11/20060210) MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <20060324140936.GB18259@dimma.mow.oilspace.com> In-Reply-To: <20060324140936.GB18259@dimma.mow.oilspace.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: New sysinstall in 6.1-PRE. make own release 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: Fri, 24 Mar 2006 16:57:40 -0000 Dmitriy Kirhlarov wrote: > Hi, all > > I need building my own install server and want install my custom > world, custom kernel and other in non-interactive mode. > With 6.1-beta3 it work in mass (I not try install my kernel). > With 6.1-beta4 and more fresh I can't get non-interactive > installation. > > 1. I can't find how to select timezone non-interactive. > 2. I can't good variant for installing my own kernel (now I use > command=/dist/my.custom.installer > system > > /dist/my.custom.installer -- simple script: > ---------------- > #!/bin/sh > > cd /dist/kernels > ./install.sh OILSPACE1 > rm -rf /boot/kernel > ln -s /boot/OILSPACE1 /boot/kernel > ---------------- > but it's hack. It seems simpler to just setup OILSPACE1 as the GENERIC kernel on your install iso so everything else would work as intended. Doing that would require a small change to release/Makefile to make "GENERIC" a name you can set from the command line. I'm not sure when the custom installer script gets run but be sure to look at install.c:installFixupKernel as it might explain some of your problems. There was also a bug in the install.sh script that was fixed after BETA4. In general the recent changes for packaging+installing kernels should simplify _adding_ custom kernels to an install but not replacing GENERIC and/or SMP kernel configurations. > > > Also I have question about making my own release. > > I can't understand, how to create my own loader.conf for pxeboot. > Default not work -- machine panic with "no init" diagnose. Reason -- > need string in loader.conf: > vfs.root.mountfrom="ufs:/dev/md0c" > (I need some another strings for my own loader.conf) > > For creating release I use command: > make release BUILDNAME=6.1-PRERELEASE CHROOTDIR=/usr/release \ > CVSROOT=/home/ncvs EXTSRCDIR=/usr/src KERNELS=OILSPACE1 \ > LOCAL_PATCHES=/usr/src_local_patches NO_FLOPPIES=yes NO_ISOS=yes \ > NODOC=yes NOPORTS=yes RELEASETAG=RELENG_6 KERNELS_BASE="OILSPACE1 \ > GENERIC" KERNELS_BASE was not intended to be overridden as sysinstall has builtin knowledge about "GENERIC" and "SMP". KERNELS is documented as a knob to set to add additional kernel configurations to an iso. > > My local patches -- only new unionfs currently. > install.cfg I put in /usr/src/release directory. > > Can anybody help me with auto-select timezone, right way for > installing kernel and place in source tree for PXE loader.conf? I don't know about the timezone setting. Hopefully the above helps with setting up a custom kernel. FWIW I used qemu to test the release+sysinstall changes (in case you aren't aware of it). Sam