Installation guide

command. The c flag allows you to name an existing configuration file,
which the /usr/sbin/doconfig program uses to build the kernel. To
build a new kernel using an existing configuration file, 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 specifying the name of the
target configuration file with the c flag. For example on a system
named MYSYS, enter the following command:
# /usr/sbin/doconfig -c MYSYS
*** KERNEL CONFIGURATION AND BUILD PROCEDURE ***
Saving /usr/sys/conf/MYSYS as /usr/sys/conf/MYSYS.bck
4. Answer the following prompt to indicate whether or not you want to
edit the configuration file:
Do you want to edit the configuration file? (y/n) [n]:
If you modified the configuration file before you started this procedure,
indicate that you do not want to edit the configuration file.
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.
5. When the kernel configuration and build 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
6. Reboot the system as follows:
# /usr/sbin/shutdown -r now
Configuring the Kernel 5–25