Subject: Re: Unable to upgrade using sysinst ( solved )
To: None <netbsd-users@netbsd.org>
From: Ian Thomas <ipthomas@mac.com>
List: netbsd-users
Date: 07/06/2003 08:49:51
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday, July 4, 2003, at 01:36 PM, Robert Elz wrote:

>     Date:        Fri, 4 Jul 2003 11:32:25 -0400
>     From:        Ian Thomas <ipthomas@mac.com>
>     Message-ID:  <B681858E-AE34-11D7-A4B0-0003934C525E@mac.com>
>
>
>   | 1) Upgrade from a directory that is local
>   | 2) Upgrade from a filesystem that isn't mounted
>
> The second of those has been widely reported to either be almost
> impossible to work out how to use correctly, or simply broken.
> Almost no-one attempts to use it, so I suspect there isn't anyone
> actually looking to see what is broken, and fix it (or its 
> documentation).
>
> The first one works, but as you noted, the filesystem isn't likely to
> be mounted at the relevant time.
>
> The workaround for the broken(2) is to mount the filesystem ...
>
> That is, get a shell from sysinst (sometime early, when that option
> still exists, of if you're brave, suspend it) mount the filesystem tha
> you need somewhere (which you probably need to mkdir first), find the
> path to the sets you need in the now mounted system, resume sysinst 
> (exit
> the shell) and then use the first of those two methods.
>
> kre

	It seems that sysinst does the following when you begin an upgrade:

1) fsck each of your partitions.  The partitions can not be mounted at 
this time, so you cannot mount a partition using the shell in the main 
menu.

2) mounts each of the partitions on /mnt

	I had the path to the local directory slightly wrong.  It was

/mnt/usr/src/release/binary/sets

	The fact that the local directory begins with /mnt may be information 
that the sysinst program should mention when you attempt to upgrade.  I 
only found this out by suspending sysinst and doing a mount -a.
	Thanks for the heads up to those who suggested suspending sysinst.  I 
had only tried to get a virtual terminal with ctrl-alt-fn.


Ian P. Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE/CBr02h8cNYpdcuoRArAsAJ0bXqSDt22YVPVi1JIJ7Pr4FzkyGQCgg0aJ
GTiqxUG0+/ZdFSi5mVAOyvk=
=D3ol
-----END PGP SIGNATURE-----