From owner-freebsd-stable@FreeBSD.ORG Fri Oct 17 07:14:26 2003 Return-Path: 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 E3EC716A4B3 for ; Fri, 17 Oct 2003 07:14:26 -0700 (PDT) Received: from omoikane.mb.skyweb.ca (209-5-243-50.mb.skyweb.ca [209.5.243.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 034D443FE0 for ; Fri, 17 Oct 2003 07:14:26 -0700 (PDT) (envelope-from mark@skyweb.ca) Received: by omoikane.mb.skyweb.ca (Postfix, from userid 1001) id 2F4B3659FA; Fri, 17 Oct 2003 09:14:24 -0500 (CDT) Date: Fri, 17 Oct 2003 09:14:23 -0500 From: Mark Johnston To: stable@freebsd.org Message-ID: <20031017141423.GB962@omoikane.mb.skyweb.ca> Mail-Followup-To: stable@freebsd.org References: <55492.207.5.142.198.1066307656.squirrel@bmyster.com> <44n0c1z4xs.fsf@be-well.ilk.org> <1256.66.63.97.2.1066318359.squirrel@bmyster.com> <44vfqo3lj9.fsf@be-well.ilk.org> <3F8F9DCC.2080301@iinet.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F8F9DCC.2080301@iinet.net.au> User-Agent: Mutt/1.4.1i Subject: Re: updating system help ??!!?? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 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, 17 Oct 2003 14:14:27 -0000 Nigel Taylor wrote: > First run *First* run mergemaster -p, to update any files required for buildworld and installworld to succeed. > *make buildworld && make buildkernel KERNCONF=YOURKERNEL* > > if no errors, then run > > *cp /kernel /kernel.prev && make installkernel KERNCONF=YOURKERNEL The system copies /kernel to /kernel.old by itself, but doing it yourself certainly doesn't hurt anything. > *then reboot > > If everything is "OK" shutdown and reboot into single user mode Not everything will always be OK at this point, since your running kernel and world are (intentionally) out of sync. It's generally recommended to go straight to single-user mode after an installkernel, to avoid confusion in things like ps, top, and ipfw. Consider booting with IPFW set to default deny and with ipfw(8) not working - the shrieks of protest from your daemons would not be pretty. > mount all the filesystems you need (/usr, /var) > > *mount -u /, /usr, /var* If your CMOS clock isn't UTC (if /etc/wall_cmos_clock exists), you should run "adjkerntz -i" in here. Otherwise, the times on your installed world could be messed up, and various make breakage could result. I believe it's safe to run adjkerntz -i either way, but I'm not positive on that one. Also, if you need swap, swapon -a should be run here. > then run > > *make installworld* Best to do mergemaster before you reboot. > then reboot an everything should be "OK", then thats your system > updated, well almost you still have to use mergemaster :) > > if you modify your kernel just use > > *make buildkernel KERNCONF=YOURKERNEL && **make installkernel > KERNCONF=YOURKERNEL > > *If you want i have some shell scripts that do this automatically :) > > Nigel Taylor Just picking a few nits :), Mark