Installation guide

# 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.2 Building the Kernel to Add Selected Kernel Options
If you invoke the /usr/sbin/doconfig program without using flags, you
are given the opportunity to modify the kernel using a menu. To modify the
kernel using a menu, follow these steps:
1. Log in as root or become the superuser and set your default directory
to the /usr/sys/conf directory.
2. Save a copy of the existing /vmunix file. If possible, save the file in the
root (/) directory, as follows:
# cp /vmunix /vmunix.save
If there are disk space constraints, you can save the kernel file in a file
system other than root. For example:
# cp /vmunix /usr/vmunix.save
3. Run the /usr/sbin/doconfig program using no flags, as follows:
# /usr/sbin/doconfig
*** KERNEL CONFIGURATION AND BUILD PROCEDURE ***
Saving /usr/sys/conf/MYSYS as /usr/sys/conf/MYSYS.bck
4. Enter the name of the configuration file at the following prompt:
Enter a name for the kernel configuration file. [MYSYS]:MYSYS
The kernel configuration processes convert the system name to
uppercase when determining what name to supply as the default
5–22 Configuring the Kernel