From owner-freebsd-current Fri Nov 24 19:59:18 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA22535 for current-outgoing; Fri, 24 Nov 1995 19:59:18 -0800 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA22528 for ; Fri, 24 Nov 1995 19:59:06 -0800 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id OAA04307; Sat, 25 Nov 1995 14:56:41 +1100 Date: Sat, 25 Nov 1995 14:56:41 +1100 From: Bruce Evans Message-Id: <199511250356.OAA04307@godzilla.zeta.org.au> To: davidg@Root.COM, scrappy@hub.org Subject: Re: follow-up to kernel compile problem... Cc: current@FreeBSD.ORG Sender: owner-current@FreeBSD.ORG Precedence: bulk > 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