From owner-freebsd-stable Tue Aug 13 8: 6: 8 2002 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 2828837B400 for ; Tue, 13 Aug 2002 08:06:03 -0700 (PDT) Received: from topperwein.dyndns.org (acs-24-154-28-203.zoominternet.net [24.154.28.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 368E043E81 for ; Tue, 13 Aug 2002 08:06:02 -0700 (PDT) (envelope-from behanna@zbzoom.net) Received: from topperwein (topperwein [192.168.168.10]) by topperwein.dyndns.org (8.12.5/8.12.5) with ESMTP id g7DF62QC088463 for ; Tue, 13 Aug 2002 11:06:02 -0400 (EDT) (envelope-from behanna@zbzoom.net) Date: Tue, 13 Aug 2002 11:05:57 -0400 (EDT) From: Chris BeHanna Reply-To: Chris BeHanna To: FreeBSD-Stable Subject: Re: Need instructions: build kernel on one machine; install on another In-Reply-To: Message-ID: <20020813110326.W44669-100000@topperwein.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 13 Aug 2002, Chen Xu wrote: > On Tuesday, August 13, 2002, at 10:20 AM, Dmitry Agafonov wrote: > > > > We have compiled kernels (make buildkernel KERNCONF=LALALA) on one machine, > > and then after nfs-mounting /usr/src and /usr/obj to target machine - > > make installkernel KERNCONF=LALALA > > This works fine and is very good for poor-cpu/ram machines :) > > > > > > The question still remains - can one build a number of kernels and > > then install them? This will save some time on updating a number > > of machines: 3 steps (cvsup'ing and world and kernel(s) building) > > may be fully automated. > > I don't see why you cann't do it for many machines. One can just > make buildkernel KERNCONF=LALALA > ... > make buildkernel KERNCONF=ZAZAZA > > then nfs mount to each machine to installkernel. Only problem is > that you have to do `installkernel KERNCONF=$cornel_config` > on each target boxes, which makes fully auto a problem. \ Why? for i in mach1 mach2 mach3 mach4 do ssh $i /root/upgrade.sh done And upgrade.sh contains something like: mount -t nfs buildmachine:/usr/src /usr/src cd /usr/src make installkernel KERNCONF=MYKERNEL KODIR=/modules umount /usr/src Of course, it needs a little polish, but you get the idea. -- Chris BeHanna http://www.pennasoft.com Principal Consultant PennaSoft Corporation chris@pennasoft.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message