From owner-freebsd-current@FreeBSD.ORG Sat Aug 30 00:23:39 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 1D52C106567A for ; Sat, 30 Aug 2008 00:23:39 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout016.mac.com (asmtpout016.mac.com [17.148.16.91]) by mx1.freebsd.org (Postfix) with ESMTP id 0BF518FC13 for ; Sat, 30 Aug 2008 00:23:39 +0000 (UTC) (envelope-from cswiger@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp016.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K6D00JT4YBEF780@asmtp016.mac.com> for freebsd-current@freebsd.org; Fri, 29 Aug 2008 16:23:38 -0700 (PDT) Message-id: <5AEFCC1D-F758-4EA6-B2FA-180C2C689938@mac.com> From: Chuck Swiger To: Matkhamtkha Brekher In-reply-to: <53cc795f0808291515m4fe9e49k903347d1e89ec07e@mail.gmail.com> Date: Fri, 29 Aug 2008 16:23:37 -0700 References: <53cc795f0808291515m4fe9e49k903347d1e89ec07e@mail.gmail.com> X-Mailer: Apple Mail (2.928.1) 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:23:39 -0000 On Aug 29, 2008, at 3:15 PM, Matkhamtkha Brekher wrote: > # 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? Oh, yes. > what consequences would appear if i'll reboot the machine once > during the upgrade? If you don't reboot in order to be using the new kernel before installing the new userland, you'll install critical things like sh and make which might not run using the old kernel. You might find that the installworld part fails in the middle, and the system is left in an unusable state which is very hard to recover from. Regards, -- -Chuck