From owner-freebsd-current@FreeBSD.ORG Sat Aug 30 00:29:18 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D3BB1065682 for ; Sat, 30 Aug 2008 00:29:18 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 9C48A8FC17 for ; Sat, 30 Aug 2008 00:29:17 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 40F69A068E; Sat, 30 Aug 2008 02:29:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 32ED1A068A; Sat, 30 Aug 2008 02:29:16 +0200 (CEST) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 1EA99A0686; Sat, 30 Aug 2008 02:29:16 +0200 (CEST) Received: from localhost.my.domain ([80.129.136.237]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.1HF110) with ESMTP id 2008083002291511-18544 ; Sat, 30 Aug 2008 02:29:15 +0200 Received: by localhost.my.domain (sSMTP sendmail emulation); Sat, 30 Aug 2008 02:33:22 +0200 Date: Sat, 30 Aug 2008 02:33:21 +0200 From: Alexey Shuvaev To: Matkhamtkha Brekher Message-ID: <20080830003321.GA1007@localhost.my.domain> Mail-Followup-To: Matkhamtkha Brekher , freebsd-current@freebsd.org References: <53cc795f0808291515m4fe9e49k903347d1e89ec07e@mail.gmail.com> Mime-Version: 1.0 In-Reply-To: <53cc795f0808291515m4fe9e49k903347d1e89ec07e@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Organization: Universitaet Wuerzburg X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 08/30/2008 02:29:15 AM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 08/30/2008 02:29:15 AM, Serialize complete at 08/30/2008 02:29:15 AM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Cc: freebsd-current@freebsd.org Subject: Re: reboot during upgrade 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, 30 Aug 2008 00:29:18 -0000 On Fri, Aug 29, 2008 at 10:15:18PM +0000, Matkhamtkha Brekher wrote: > sorry guys for the oftopic but can someone tell me why this guide from > /use/src/Makefile: > > # 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) > > > tells me to reboot the machine twice? > after 4th step and then after 9. > > what's the point? is it dangerous to do it only once after 9 step and > not after 4? > Step 4 installs new kernel preserving the old one as kernel.old. It may happen that the new kernel does not work properly (especially if you are on CURRENT). Booting the new kernel at this moment helps diagnose these situations and reverting back to the old kernel fixes the problem. > what consequences would appear if i'll reboot the machine once during > the upgrade? > If you install both kernel and world and notice that the new kernel does not work later (after step 9), you cannot revert to the old userland. And sometimes new world does not work with old kernel. Apart from this, nobody and nothing forbids you to cut the corners. But then you should know what you are doing :-> Just my 0.02$, Alexey.