From owner-freebsd-current Fri Nov 24 20:41:25 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA24759 for current-outgoing; Fri, 24 Nov 1995 20:32:06 -0800 Received: from hub.org (hub.org [199.166.238.138]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id UAA24711 for ; Fri, 24 Nov 1995 20:31:59 -0800 Received: (from scrappy@localhost) by hub.org (8.7.1/8.7.1) id XAA26580; Fri, 24 Nov 1995 23:31:20 -0500 (EST) Date: Fri, 24 Nov 1995 23:31:17 -0500 (EST) From: "Marc G. Fournier" To: Bruce Evans cc: davidg@Root.COM, current@FreeBSD.ORG Subject: Re: follow-up to kernel compile problem... In-Reply-To: <199511250356.OAA04307@godzilla.zeta.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@FreeBSD.ORG Precedence: bulk Thanks Bruce... This is one that I've gotta store close to my keyboard :) On Sat, 25 Nov 1995, Bruce Evans wrote: > > So, each time that current updates, I'm going to have to > >make world to keep it in sync? Can I do a make world on a live > >system, if that is the case...or do I have to shutdown into single > >user mode? someone had mentioned that they are going into single > >user mode each time *shrug* > > > If so, what would be recommended procedure to do this with the > >minimal downtime? > > > cd /usr/src > > make > > shutdown > > kernel -s > > make world > > # read all changes in /usr/src/etc and adapt them to your /etc > > # if config sources have changed > cd /usr/src/usr.sbin/config > make depend > make > su > make INSTALL='install -C' > exit > > # if config data files have changed > cd /sys/i386/conf > config -n YOURKERNEL > > # if kernel sources or kernel config have changed > cd /sys/compile/YOURKERNEL > make depend # if anything relevant has changed > make > > # if the kernel binary just changed > su > mv /kernel.old /kernel.veryold > cp -p /kernel /kernel.old > cp -p kernel / > shutdown > > # if headers have changed > cd /usr/src/include # repeat this for other header dirs as necessary > make depend > make > su > make INSTALL='install -C' > exit > > # if lib sources have changed > cd /usr/src/lib > make depend > make > su > make INSTALL='install -C' > exit > > # if any user sources have changed > # do this one directory at a time if only a couple of things have > # changed and you know what they are > cd /usr/src > make depend > make > su > make INSTALL='install -C' > exit > > # occasionally repeat previous step and/or do it for the whole tree > # in case you missed something. > > # very occasionally repeat previous step in case the makefiles > # missed something. > > # put INSTALL=install -C in /etc/make.conf to save typing > > Bruce > Marc G. Fournier | Knowledge, Information and Communications, Inc (ki.net) scrappy@hub.org | soon to be: | scrappy@ki.net | For more information, send me email.