From owner-freebsd-questions Sat Oct 13 21:10:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 7D32B37B403 for ; Sat, 13 Oct 2001 21:10:10 -0700 (PDT) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 28663BD01; Sat, 13 Oct 2001 21:10:07 -0700 (PDT) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id VAA31392; Sat, 13 Oct 2001 21:10:06 -0700 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id f9E49MJ56109; Sat, 13 Oct 2001 21:09:22 -0700 (PDT) (envelope-from swear@blarg.net) To: Mike Meyer Cc: "Doug Reynolds" , questions@FreeBSD.ORG Subject: Re: cvsup References: <15304.58886.215474.233433@guru.mired.org> From: swear@blarg.net (Gary W. Swearingen) Date: 13 Oct 2001 21:09:21 -0700 In-Reply-To: <15304.58886.215474.233433@guru.mired.org> Message-ID: Lines: 38 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Meyer writes: > This is probably the most dangerous order you could do those things in > that can work. > > The recommended - and safest - order is: > > make buildworld > make kernel KERNCONF=YOURCONF > # reboot to run the kernel you just built, preferably in single user mode > make installworld > mergemaster > reboot again > > You have to do the buildworld before you can build a kernel, so > buildworld has to happen first. > > "make kernel" is identical to "make buildkernel" followed by > "make installkernel". FWIW, "make world" is also identical to > "make buildworld" followed by "make installworld", > > After that, you reboot to insure that the new kernel will boot. If it > fails for some reason, backing out the kernel is pretty easy, and you > have your old, running system to rebuild things on. ... That makes sense. If the old world isn't compatible with the new kernel, it will probably still boot and run enough to give you confidence to install the new world, mergemaster, and final reboot. (Your kind of detailed explanation wouldn't be bad in the handbook.) I wonder if, with today's huge disks, it wouldn't be good to have an option in the build software that keeps the old kernel, the old world, and the old config files (during a make kernel world merge) somewhere where it could be easily restored (or maybe just choosen) from the boot prompt. (Also: Aren't there EVER problems booting a good new kernel with an old world - even when just booting to single user? Do you sometimes HAVE to install new kernel and new world at same time?) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message