Subject: Re: upgrade from 2.0 to 2.0.2
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Peter I. Hansen <pih@xbase.dk>
List: netbsd-help
Date: 04/15/2005 12:37:57
On Fri, Apr 15, 2005 at 01:22:14PM +0300, Martti Kuparinen wrote:
> Peter I. Hansen wrote:
> 
> >>>>ftp ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/i386/binary/sets/
> 
> >ok, so I would want to get kern-GENERIC.tgz, unpack and copy it
> >to root?
> >But, is operation not included in your recipe above, where you
> >get fetch all the binary sets?
> 
> Mistake #2: the kernel images are fetched as well and the for loop
> in fact extracted all kernels (so you end up having GENERIC_TINY).
> Just make sure you extract the correct kernel:
> 
> tar xpfz kern-GENERIC.tgz -C /
> 
> Martti

In other words a complete upgrade with the GENERIC kernel would
be made with:

cd /tmp
ftp
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/i386/binary/sets/
bi
prompt
mg *tgz
bye

rm etc.tgz kern-GENERIC.MP.tgz kern-GENERIC_*.tgz
for i in *tgz
do
tar xpfz $i -C /
done

If this is correct, it could easily be run as an upgrade script.

-Peter