Next
Previous Contents
6. Prepare Kernel For Boot
Before you can use the kernel on your system, you have to move the kernel
and prepare the bootloader to load the kernel at bootup.
6.1 Move the Kernel
After the kernel is done compiling (and you have solved world hunger in
the process) you need to move the bzImage to the /boot directory. Execute
these commands when you are in the kernel source directory:
cd arch/i386/boot/
(Assuming an i386 architecture)
mv bzImage /boot
cd /boot
mv bzImage linux-2.4.x
(Replace "x" with your version)
chmod a+x linux-2.4.x
6.2 Edit LILO
Now that the kernel is compiled and in place you need to configure the
bootloader to boot your new kernel. Open up /etc/lilo.conf in your favorite
text editor and add these lines:
image=/boot/linux-2.4.x
label=new
read-only
root=/dev/hd?#
(Replace "?#" with the letter and number of your root partition. It is
probably the same as the entry above.)
Save the file and exit from the editor.
6.3 Run LILO
Execute "lilo" and look for a kernel named "new". If it is there you can
proceed to the next section. If lilo gives you errors, double check that
you entered the above information correctly.
Next Previous
Contents