Home | History | Annotate | Line # | Download | only in hp300
upgrade revision 1.2
      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.2  thorpej 	  so would be pointless, since a NetBSD 1.0 kernel will
     23  1.2  thorpej 	  not run NetBSD 1.1 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.2  thorpej 	  is preferred, since there may be incompatibilities
     36  1.2  thorpej 	  between the NetBSD 1.1 kernel and older route(8)
     37  1.2  thorpej 	  binaries.
     38  1.2  thorpej 
     39  1.2  thorpej 	* Back up your pre-existing kernel and copy the 1.1
     40  1.2  thorpej 	  kernel into your root partition.
     41  1.2  thorpej 
     42  1.2  thorpej 	* Reboot with the 1.1 kernel into single-user mode.
     43  1.2  thorpej 
     44  1.2  thorpej 	* Check all filesystems:
     45  1.2  thorpej 
     46  1.2  thorpej 		/sbin/fsck -p
     47  1.2  thorpej 
     48  1.2  thorpej 	* Mount all local filesystems:
     49  1.2  thorpej 
     50  1.2  thorpej 		/sbin/mount -a -t nonfs
     51  1.2  thorpej 
     52  1.2  thorpej 	* If you keep /usr or /usr/share on an NFS server, you
     53  1.2  thorpej 	  will want to mount those filesystems as well.  To do
     54  1.2  thorpej 	  this, you will need to enable the network:
     55  1.2  thorpej 
     56  1.2  thorpej 		sh /etc/netstart
     57  1.2  thorpej 
     58  1.2  thorpej 	  NOTE: the route(8) commands may fail due to potential
     59  1.2  thorpej 	  incompatibilities between route(8) and the NetBSD 1.1
     60  1.2  thorpej 	  kernel.  Once you have enabled the network, mount the
     61  1.2  thorpej 	  NFS filesystems.  If you use amd(8), you may or may not
     62  1.2  thorpej 	  have to mount these filesystems manually.  Your mileage
     63  1.2  thorpej 	  may vary.
     64  1.2  thorpej 
     65  1.2  thorpej 	* Make sure you are in the root filesystem and extract
     66  1.2  thorpej 	  the `base' binary set:
     67  1.2  thorpej 
     68  1.2  thorpej 		cd /
     69  1.2  thorpej 		tar --unlink -zxvpf /path/to/base11.tar.gz
     70  1.2  thorpej 
     71  1.2  thorpej 	  NOTE: the `--unlink' option is _very_ important!
     72  1.2  thorpej 
     73  1.2  thorpej 	* Install a new boot block:
     74  1.2  thorpej 
     75  1.2  thorpej 		cd /usr/mdec
     76  1.2  thorpej 		disklabel -B <root disk, e.g. sd0>
     77  1.2  thorpej 
     78  1.2  thorpej 	* Sync the filesystems:
     79  1.2  thorpej 
     80  1.2  thorpej 		sync
     81  1.2  thorpej 
     82  1.2  thorpej 	* At this point you may extract any other binary sets
     83  1.2  thorpej 	  you may have placed on local filesystems, or you may
     84  1.2  thorpej 	  wish to extract additional sets at a later time.
     85  1.2  thorpej 	  To extract these sets, use the following commands:
     86  1.2  thorpej 
     87  1.2  thorpej 		cd /
     88  1.2  thorpej 		tar --unlink -zxvpf <path to set>
     89  1.2  thorpej 
     90  1.2  thorpej NOTE: you SHOULD NOT extract the `etc' set if upgrading.  Instead, you
     91  1.2  thorpej should extract that set into another area and carefully merge the changes
     92  1.2  thorpej by hand.
     93