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