Subject: a question about updating
To: None <netbsd-users@netbsd.org>
From: Thierry Lacoste <lacoste@univ-paris12.fr>
List: netbsd-users
Date: 03/19/2007 13:52:15
I'm trying to figure out a way to update NetBSD on one machine
and install the new kernel and userland on other machines.
Here's what I did:
On the build machine I created /usr/export/ and put src and xsrc in it.
I created /usr/export/builds/i386/obj and /usr/export/builds/i386/tools.
This machine exports /usr/export read-only.
=46rom the root of the source tree:
cd /usr/export/src/
Build the toolchain:
sh build.sh -O ../builds/i386/obj -T ../builds/i386/tools -U -u tools
Build the distribution:
sh build.sh -x -X ../xsrc -O ../builds/i386/obj -T ../builds/i386/tools -U=
-u=20
distribution
Build the kernel:
sh build.sh -O ../builds/i386/obj -T ../builds/i386/tools -U -u=20
kernel=3DGENERIC
On the client machine I mount /usr/export of the build machine in /mnt
Installing the new kernel is easy.
The problem is when I try to install the userland.
mount build_machine:/usr/export /mnt
cd /mnt/src
su
sh build.sh -x -X ../xsrc -O ../builds/i386/obj -T ../builds/i386/tools -U=
=20
install=3D/
=3D=3D=3D> build.sh command:=20
build.sh -x -X ../xsrc -O ../builds/i386/obj -T ../builds/i386/tools -U=20
install=3D/
=3D=3D=3D> build.sh started: Mon Mar 19 13:18:35 CET 2007
=3D=3D=3D> MACHINE: i386
=3D=3D=3D> MACHINE_ARCH: i386
=3D=3D=3D> TOOLDIR path: /mnt/src/../builds/i386/tools
=3D=3D=3D> DESTDIR path: /mnt/src/../builds/i386/obj/destdir.i386
=3D=3D=3D> RELEASEDIR path: /mnt/src/../builds/i386/obj/releasedir
rm: /mnt/src/../builds/i386/tools/bin/nbmake-i386: Permission denied
eval: cannot create /mnt/src/../builds/i386/tools/bin/nbmake-i386: permissi=
on=20
denied
Is this possible to do it that way or should I build a release?
Regards,
Thierry.