Chapter 21
Chapter 21
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=linux
image=/boot/vmlinuz-2.4.18-0.12
label=linux
initrd=initrd-2.4.18-0.12.img
read-only
root=/dev/hda5
To add your new kernel to LILO,
copy the existing image section to a new
one and modify it to boot your new kernel
image (and initrd image if you have any
SCSI devices and have created an initrd
image). Also, rename the label of the old
kernel to something such as linux-old. Your
/etc/lilo.conf should look similar to the
following:
boot=/dev/had
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=linux
image=/boot/vmlinuz-2.4.18-0.12-aita
label=linux
initrd=initrd-2.4.18-0.12-aita
read-only
root=/dev/hda5
image=/boot/vmlinuz-2.4.18-0.12
label=linux-old
initrd=initrd-2.4.18-0.12.img
read-only
root=/dev/hda5
Building a Monolithic Kernel
To build a monolithic kernel, follow the same
steps as building a modularized kernel, with a few
exceptions.
• When configuring the kernel, do not compile
anything as a module. In other words, only answer Yes
or No to the questions. Also, you should answer No to
kmod support and module version
(CONFIG_MODVERSIONS) support.
• Omit the following steps:
make modulesmake modules_install
• Edit lilo.conf to include the line append=nomodules
or append the kernel line in grub.conf with nomodules.