1998-01-09 21:45:24 +03:00
|
|
|
$NetBSD: upgrade,v 1.6 1998/01/09 18:46:23 perry Exp $
|
|
|
|
|
1995-11-17 09:54:39 +03:00
|
|
|
It is possible to easily upgrade your existing NetBSD/hp300 system
|
|
|
|
using the upgrade program in the miniroot. If you wish to upgrade
|
|
|
|
your system by this method, simply select the `upgrade' option once
|
|
|
|
the miniroot has booted. The upgrade program with then guide you
|
|
|
|
through the procedure. The upgrade program will:
|
|
|
|
|
|
|
|
* Enable the network based on your system's current
|
|
|
|
network configuration.
|
|
|
|
|
|
|
|
* Mount your existing filesystems.
|
|
|
|
|
|
|
|
* Extract binary sets from the media of your choice.
|
|
|
|
|
|
|
|
* Fixup your system's existing /etc/fstab, changing the
|
|
|
|
occurrences of `ufs' to `ffs' and let you edit the
|
|
|
|
resulting file.
|
|
|
|
|
|
|
|
* Make new device nodes in your root filesystem.
|
|
|
|
|
1997-12-23 19:55:31 +03:00
|
|
|
* Don't forget to extract the `kern' set from the distribution.
|
1995-11-17 09:54:39 +03:00
|
|
|
NOTE: the existing kernel WILL NOT be backed up; doing
|
1996-10-09 04:13:36 +04:00
|
|
|
so would be pointless, since older kernels may not be
|
1997-11-17 04:39:33 +03:00
|
|
|
capable of running NetBSD _VER executables.
|
1995-11-17 09:54:39 +03:00
|
|
|
|
|
|
|
* Install a new boot block.
|
|
|
|
|
|
|
|
* Check your filesystems for integrity.
|
|
|
|
|
|
|
|
While using the miniroot's upgrade program is the preferred method
|
|
|
|
of upgrading your system, it is possible to upgrade your system
|
|
|
|
manually. To do this, follow the following procedure:
|
|
|
|
|
|
|
|
* Place _at least_ the `base' binary set in a filesystem
|
|
|
|
accessible to the target machine. A local filesystem
|
1997-11-17 04:39:33 +03:00
|
|
|
is preferred, since the NFS subsystem in the NetBSD _VER
|
1996-10-09 04:13:36 +04:00
|
|
|
kernel may be incompatible with your old binaries.
|
1995-11-17 09:54:39 +03:00
|
|
|
|
1997-11-17 04:39:33 +03:00
|
|
|
* Back up your pre-existing kernel and copy the _VER
|
1995-11-17 09:54:39 +03:00
|
|
|
kernel into your root partition.
|
|
|
|
|
1997-11-17 04:39:33 +03:00
|
|
|
* Reboot with the _VER kernel into single-user mode.
|
1995-11-17 09:54:39 +03:00
|
|
|
|
|
|
|
* Check all filesystems:
|
|
|
|
|
1996-10-09 04:13:36 +04:00
|
|
|
/sbin/fsck -pf
|
1995-11-17 09:54:39 +03:00
|
|
|
|
|
|
|
* Mount all local filesystems:
|
|
|
|
|
|
|
|
/sbin/mount -a -t nonfs
|
|
|
|
|
|
|
|
* If you keep /usr or /usr/share on an NFS server, you
|
|
|
|
will want to mount those filesystems as well. To do
|
|
|
|
this, you will need to enable the network:
|
|
|
|
|
|
|
|
sh /etc/netstart
|
|
|
|
|
1996-10-09 04:13:36 +04:00
|
|
|
* Run the update(8) daemon, to ensure that new programs
|
|
|
|
are actually stored on disk.
|
|
|
|
|
|
|
|
update
|
1995-11-17 09:54:39 +03:00
|
|
|
|
|
|
|
* Make sure you are in the root filesystem and extract
|
|
|
|
the `base' binary set:
|
|
|
|
|
|
|
|
cd /
|
1997-12-23 19:55:31 +03:00
|
|
|
tar --unlink -zxvpf /path/to/base.tgz
|
1995-11-17 09:54:39 +03:00
|
|
|
|
|
|
|
NOTE: the `--unlink' option is _very_ important!
|
|
|
|
|
|
|
|
* Install a new boot block:
|
|
|
|
|
|
|
|
cd /usr/mdec
|
|
|
|
disklabel -B <root disk, e.g. sd0>
|
|
|
|
|
|
|
|
* Sync the filesystems:
|
|
|
|
|
|
|
|
sync
|
|
|
|
|
|
|
|
* At this point you may extract any other binary sets
|
|
|
|
you may have placed on local filesystems, or you may
|
|
|
|
wish to extract additional sets at a later time.
|
|
|
|
To extract these sets, use the following commands:
|
|
|
|
|
|
|
|
cd /
|
|
|
|
tar --unlink -zxvpf <path to set>
|
|
|
|
|
|
|
|
NOTE: you SHOULD NOT extract the `etc' set if upgrading. Instead, you
|
|
|
|
should extract that set into another area and carefully merge the changes
|
|
|
|
by hand.
|