upgrade revision 1.1
1It may be possible to easily upgrade your existing NetBSD/pmax system
2using the upgrade program in the miniroot.
3	NOTE: this has not been tested and should be done with caution,
4	after backing up your system.
5
6If you wish to upgrade your system by this method, simply select
7the `upgrade' option once the miniroot has booted.  The upgrade program
8with then guide you through the procedure.  The upgrade program will:
9
10	* Enable the network based on your system's current
11	  network configuration.
12
13	* Mount your existing filesystems.
14
15	* Extract binary sets from the media of your choice.
16
17	* Fixup your system's existing /etc/fstab, changing the
18	  occurrences of `ufs' to `ffs' and let you edit the
19	  resulting file.
20
21	* Make new device nodes in your root filesystem.
22
23	* Copy a new kernel onto your root partition.
24	  NOTE: the existing kernel WILL NOT be backed up; doing
25	  so would be pointless, since a NetBSD 1.1 kernel will
26	  not work correctly with all NetBSD 1.2 executables.
27
28	* Install a new boot block.
29
30	* Check your filesystems for integrity.
31
32While using the miniroot's upgrade program is the preferred method
33of upgrading your system, it is possible to upgrade your system
34manually.  To do this, follow the following procedure:
35
36	* Place _at least_ the `base' binary set in a filesystem
37	  accessible to the target machine.  A local filesystem
38	  is preferred, since there may be incompatibilities
39	  between the NetBSD 1.2 kernel and older route(8)
40	  binaries.
41
42	* Back up your pre-existing kernel and copy the 1.2
43	  kernel into your root partition.
44
45	* Reboot with the 1.2 kernel into single-user mode.
46
47	* Check all filesystems:
48
49		/sbin/fsck -p
50
51	* Mount all local filesystems:
52
53		/sbin/mount -a -t nonfs
54
55	* If you keep /usr or /usr/share on an NFS server, you
56	  will want to mount those filesystems as well.  To do
57	  this, you will need to enable the network:
58
59		sh /etc/netstart
60
61	  NOTE: the route(8) commands may fail due to potential
62	  incompatibilities between route(8) and the NetBSD 1.2
63	  kernel.  Once you have enabled the network, mount the
64	  NFS filesystems.  If you use amd(8), you may or may not
65	  have to mount these filesystems manually.  Your mileage
66	  may vary.
67
68	* Make sure you are in the root filesystem and extract
69	  the `base' binary set:
70
71		cd /
72		tar --unlink -zxvpf /path/to/base11.tar.gz
73
74	  NOTE: the `--unlink' option is _very_ important!
75
76	* Sync the filesystems:
77
78		sync
79
80	* At this point you may extract any other binary sets
81	  you may have placed on local filesystems, or you may
82	  wish to extract additional sets at a later time.
83	  To extract these sets, use the following commands:
84
85		cd /
86		tar --unlink -zxvpf <path to set>
87
88NOTE: you SHOULD NOT extract the `etc' set if upgrading.  Instead, you
89should extract that set into another area and carefully merge the changes
90by hand.
91