Re: reboot during upgrade

From: Chuck Swiger <cswiger_at_mac.com>
Date: Fri, 29 Aug 2008 16:23:37 -0700
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
Received on Fri Aug 29 2008 - 22:23:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:34 UTC