From owner-freebsd-stable Thu Mar 1 10:58:18 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by hub.freebsd.org (Postfix) with ESMTP id F1DF137B719 for ; Thu, 1 Mar 2001 10:58:11 -0800 (PST) (envelope-from oberman@ptavv.es.net) Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (8.10.1/8.10.1) with ESMTP id f21IwAL31574; Thu, 1 Mar 2001 10:58:10 -0800 (PST) Message-Id: <200103011858.f21IwAL31574@ptavv.es.net> To: Andrew Hesford Cc: FreeBSD-stable Subject: Re: KERNCONF instead of KERNEL? In-reply-to: Your message of "Thu, 01 Mar 2001 12:43:30 CST." <20010301124330.A27288@cec.wustl.edu> Date: Thu, 01 Mar 2001 10:58:10 -0800 From: "Kevin Oberman" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Date: Thu, 1 Mar 2001 12:43:30 -0600 > From: Andrew Hesford > Sender: owner-freebsd-stable@FreeBSD.ORG > > My method has not failed so far: > > make buildworld >& buildworld.log & > cd /sys/i386/conf && config -r HECUBUS #While buildworld runs > cd ../../compile/HECUBUS && make depend all install > #shutdown and boot to single user, using the old kernel that make > #install archived. > mount -a > make installworld > mergemaster > #All done! > > This process always goes smoothly for me. It usually will work OK, but it's not safe and may really bite you one day. This build will create a kernel from the existing binaries and not the newly built ones. This assures that the kernel and userland will be out of sync and, in some cases, this results in minor annoyances like top(1) not working. In others it may produce a pretty broken system. make buildworld make buildkernel KERNCONF=???? make installkernel KERNCONF=???? reboot to single user fsck -p mount -u / mount -a cd /usr/src make installworld mergemaster reboot This is conservative and can be simplified with a low possibility of failure, but I'd recommend it unless there is a good reason to do otherwise. The old kernel build method: cd /sys/i386/conf && config KERNEL cd ../../compile/KERNEL && make depend install should be used only when you have made a change to your config file and want to build a new kernel, especially if the /usr/obj tree is not populated. (Since buildkernel uses the file in /usr/obj, it will only work if /usr/obj is populated. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message