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