From owner-freebsd-current@FreeBSD.ORG Sat Jul 1 08:53:02 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C779416A415 for ; Sat, 1 Jul 2006 08:53:02 +0000 (UTC) (envelope-from list@billxu.com) Received: from sina3-196.sina.net (sina3-196.sina.net [202.108.3.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06A7D44196 for ; Sat, 1 Jul 2006 08:53:01 +0000 (GMT) (envelope-from list@billxu.com) Received: (qmail 2181 invoked from network); 1 Jul 2006 08:52:53 -0000 Received: from unknown (HELO ?219.236.3.231?) (219.236.3.231) by 10.54.2.89 with SMTP; 1 Jul 2006 08:52:53 -0000 From: Bill Xu To: Arseny Nasokin In-Reply-To: <20060627015405.GQ32801@tarc.po.cs.msu.su> References: <44A07CB6.50604@billxu.com> <20060627015405.GQ32801@tarc.po.cs.msu.su> Content-Type: text/plain; charset=UTF-8 Organization: BILLXU.COM Date: Sat, 01 Jul 2006 16:52:42 +0800 Message-Id: <1151743962.4647.25.camel@zeuux.zeuux.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org Subject: Re: the errors when updating FreeBSD from 6.0-RELEASE to 7.0-CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jul 2006 08:53:02 -0000 Dear Arseny, Thanks for your advice, and I didn't try to run make installkernel in the single user mode, but as the indication in /usr/src/Makefile, I can run it in the multiuser stat. So I think this is a small bug for FreeBSD CURRENT, and should be write in the UPDATING. Cheers, Bill Xu >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # For individuals wanting to upgrade their sources (even if only a # delta of a few days): # # 1. `cd /usr/src' (or to the directory containing your source tree). # 2. `make buildworld' # 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # [steps 3. & 4. can be combined by using the "kernel" target] # 5. `reboot' (in single user mode: boot -s from the loader prompt). # 6. `mergemaster -p' # 7. `make installworld' # 8. `make delete-old' # 9. `mergemaster' # 10. `reboot' # 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) 在 2006-06-27二的 05:54 +0400,Arseny Nasokin写道: > On Tue, Jun 27, 2006 at 08:32:54AM +0800, Bill Xu wrote: > > Dear all, > > > > I installed FreeBSD 6.0-RELEASE, and then upgraded to 7.0-CURRENT. After > > # make buildworld and # make buildkernel, I run # make installkernel, > > during this stage, it'll use kldxref to generate hints for the kernel > > loader, but at that time the kldxref in FreeBSD 6.0 can't do this, it > > must use the kldxref from -CURRENT, so I have to install the new version > > kldxref manually. This is a contradiction. :(. But after I install > > kldxref, it didn't work still, because kldxref will use libc.so.7...... > > > > and then, I have to rum "# make installworld" before "# make > > installkernel". that's too bad. > > > > Bill Xu > > > You need fresh install. > AFAIK, kldxref(8) can be runned _after_ booting in single mode. > > > I use "fresh install" with all system updates(minor & major). I do it because -CURRENT changes too fast. > simple sheme is: > * > * update buildworld buildkernel > * installworld installkernel -DDESTDIR=/path/to/new/place > * etc merging (for example, by etcmerge(1)) > * boot fixing > * (optionally) port installing in chroot (or jail) with new system > * reboot > >