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