Subject: Re: how should I make kernels to have it work under build.sh
To: Ja'far Railton <ibn.richard@gmail.com>
From: Luke Mewburn <lukem@NetBSD.org>
List: netbsd-help
Date: 11/20/2005 19:38:24
--S/ewHz4E8nbJzUsO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Nov 19, 2005 at 09:35:46PM +0000, Ja'far Railton wrote:
  | >     build as nonroot:
  | >         nonroot%  ./build.sh [...] -u -U distribution sets \
  | >                     kernel=3DMYKERN releasekernel=3DMYKERN
  | >=20
  | >     upgrade as root,
  | >         gunzip RELEASEDIR/i386/binary/kernel/netbsd-MYKERN.gz to /
  | >=20
  | >         reboot to single user
  | >=20
  | >         root# pax -zrpe -f /path/to/base.tgz
  | >         root# pax -zrpe -f /path/to/comp.tgz
  | >         root# pax -zrpe -f /path/to/games.tgz
  | >         root# pax -zrpe -f /path/to/man.tgz
  | >         root# pax -zrpe -f /path/to/misc.tgz
  | >         root# pax -zrpe -f /path/to/text.tgz
  | >         root# postinstall -s /path/to/etc.tgz fix
  | >                 (verify postinstall looks ok)
  | >         root# reboot
  | >=20
  | >=20
  | > I find this to be a much safer way of upgrading.
  |=20
  | IYHO, is this method safer than using ./build.sh [-xyz] install=3D/ in
  | single user mode? If yes, why?=20

IMHO, yes.

I will not have exactly the same environment for root as my build user,
and various file systems won't be mounted in single user mode either.
With the install=3D/ method I would have to remember the exact build.sh
invocation that I used to populate DESTDIR.
I've seen numerous problem reports (GNATS or email) where people
have been bitten because they used unprivileged builds or different
OBJDIRS for one operation (build) than the other (install=3D)

With the sets method, I'm extracting the sets as the normal
installation method would.  I can copy those sets to other
systems without the build environment.  I can archive those
sets to CD-ROM for future reference.

--S/ewHz4E8nbJzUsO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFDgDYApBhtmn8zJHIRAqrXAJ46NA3EIu5L43Y/PclS9Z2yO5jBRwCgk1ka
YNrQhTsphQqGrdehffjs42Q=
=6lgI
-----END PGP SIGNATURE-----

--S/ewHz4E8nbJzUsO--