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