next up previous contents
Next: 8. Other Administrative Tasks Up: 7. Building a New Previous: 7.5 Compiling the Kernel   Contents

7.6 LILO

The new kernel is built and is in /usr/src/linux/arch/i386/boot/bzImage, time to move it into the /boot directory.

root@localhost # mv arch/i386/boot/bzImage /boot
Since we are already in the /usr/src/linux directory, we only need to use the relative path, not the entire path to the image. It's never recommended to replace a current version kernel, before testing. To do this run it first as linux.new and make sure there are no errors. So now it needs to be added to the /etc/lilo.conf.

Edit the file to look similar to this.

boot=/dev/hda

map=/boot/map

install=/boot/boot.b

prompt

timeout=250

image=/boot/bzImage

label=linux.new

root=/dev/hda1

read-only

image=/boot/vmlinuz-2.4.20

label=linux

root=/dev/hda1

initrd=/boot/initrd-2.4.20.img

read-only
Then run lilo to include the new kernel. If it is successful something similar to this should appear on the screen.

root@localhost # lilo

Added linux.new *

Added linux
Now reboot the system, and choose linux.new to test the new kernel.


next up previous contents
Next: 8. Other Administrative Tasks Up: 7. Building a New Previous: 7.5 Compiling the Kernel   Contents