Installation guide

If you choose to edit the configuration file, the /usr/sbin/doconfig
program invokes the editor specified by the EDITOR environment
variable.
For information about the configuration file, see Section 5.5
After you finish editing the configuration file, the
/usr/sbin/doconfig program builds a new kernel.
8. When the kernel configuration and build process completes without
errors, move the new vmunix file to /vmunix. On a system named
MYSYS, issue the following command:
# mv /usr/sys/MYSYS/vmunix /vmunix
9. Reboot the system as follows:
# /usr/sbin/shutdown -r now
If the new /vmunix file fails to boot, boot using the kernel you saved at the
beginning of the procedure. To use the saved kernel, follow these steps:
1. Check all local file systems by using the fsck p command as follows:
# fsck -p
2. Write-enable the root file system using the mount u command as
follows:
# mount -u /
3. If necessary, mount the file system where the /vmunix.save file is
stored. For example, if you copied the /vmunix file to the /usr file
system, issue the following command:
# mount /usr
4. Restore the saved copy. For example, if you saved your running kernel
in the /vmunix.save file, issue the following command:
# mv /vmunix.save /vmunix
5. Shutdown and reboot the system, as follows:
# shutdown -r now
After your system is running again, you can modify the target configuration
file as needed and rebuild the kernel starting at step 3.
5.4.3 Building a Kernel After Editing System Files
If you or an SCP modify system files, such as the target configuration file,
you can rebuild your kernel using the /usr/sbin/doconfig -c
5–24 Configuring the Kernel