From owner-freebsd-stable Tue Aug 13 10:41: 5 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 6DECD37B400 for ; Tue, 13 Aug 2002 10:41:02 -0700 (PDT) Received: from mail.lambertfam.org (www.lambertfam.org [216.223.196.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3D7443E77 for ; Tue, 13 Aug 2002 10:41:01 -0700 (PDT) (envelope-from lambert@lambertfam.org) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.inch.com (Postfix) with ESMTP id 66CE9351A0 for ; Tue, 13 Aug 2002 13:37:57 -0400 (EDT) Received: from laptop.lambertfam.org (unknown [10.1.0.2]) by mail.lambertfam.org (Postfix) with ESMTP id 951C93518F for ; Tue, 13 Aug 2002 13:37:50 -0400 (EDT) Received: by laptop.lambertfam.org (Postfix, from userid 1000) id 57AC228B09; Tue, 13 Aug 2002 13:40:50 -0400 (EDT) Date: Tue, 13 Aug 2002 13:40:50 -0400 From: Scott Lambert To: FreeBSD-stable@freebsd.org Subject: Re: Need instructions: build kernel on one machine; install on another Message-ID: <20020813174050.GA5380@laptop.lambertfam.org> Reply-To: freebsd-stable@freebsd.org Mail-Followup-To: FreeBSD-stable@freebsd.org References: <3D5915BC.30609@rsm.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i 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, Aug 13, 2002 at 10:35:14AM -0400, 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. \ From my buildeverything script: THIS_HOSTS_KERNEL=`uname -a | sed 's|.*/sys/||' | awk '{print $1}'` make installkernel KERNCONF=$THIS_HOSTS_KERNEL There is probably a less expensive way to gather the installed kernel's config file name, but I just threw this together and ran it. -- Scott Lambert KC5MLE Unix SysAdmin lambert@lambertfam.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message