Subject: Re: updating, build and install order
To: NetBSD current list <current-users@netbsd.org>
From: Alan Barrett <apb@cequrux.com>
List: current-users
Date: 06/19/2003 18:55:37
On Thu, 19 Jun 2003, William Allen Simpson wrote:
> I conclude that the documentation should be changed to: 
>  (1) build tools
>  (2) build kernel
>  (3) build userland
>  (4) install kernel
>  (5) reboot
>  (6) install userland
>  (7) reboot
>  (8) etcupdate
>  (9) reboot

(2) and (3) can be done in either order. "build.sh [options] release
kernel=MYKERNEL" will do (1), (2) and (3) together.

As you suggest, I always do (3) before (4), because if the source tree
is in a state that causes (3) to fail, then I don't want to waste time
doing anything else.

In (5), I reboot to single user mode.

I don't bother with reboot (7).

> And it would be nice to figure out some clever way to install both
> kernel and userland at the same time, eliminating the window where a
> new kernel might be incompatible with old userland.

For me, that window occurs in single user mode, so it is not a problem.
Of course, this requires console access, which may be difficult.

--apb (Alan Barrett)