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