Preparations


Before you even contemplate customizing the kernel, make a backup of the generic kernel your system shipped with! Much like preparing to edit the existing binary with config(8), simply copying /bsd to /bsd.GENERIC will suffice. If you render your system unbootable with a bad custom kernel and don't have a good kernel to work with, you can look forward to repairing your system. This can be quite a pain, depending on the availability of the installation media.

Before you can build a custom kernel, you need the kernel source code. You can grab the source code from the root directory of an OpenBSD CD-ROM. It can also be found on any FTP mirror, in the directory for the release you're using. The tarred, compressed source code is in the file srcsys.tar.gz. Expand this file in the /usr/src directory.

 # cd /usr/src # tar -xzvpf srcsys.tar.gz ... 

Depending on your disk speed, this may take quite some time.

Now that you have the source code, let's look at the kernel configuration.




Absolute Openbsd(c) Unix for the Practical Paranoid
Absolute OpenBSD: Unix for the Practical Paranoid
ISBN: 1886411999
EAN: 2147483647
Year: 2005
Pages: 298

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net