Most of the time, you don't need to think about the complexity of LILO; the installation program will lead you through a simple LILO installation. It is for those times when the default installation doesn't provide the service you want that you need to understand the intricacies of LILO.
LILO is configured by the /etc/lilo.conf file. Listing 1.2 is the lilo.conf file created by a Linux installation program on a desktop client that is configured to dual-boot. Its function is very similar to the GRUB sample shown in Listing 1.1.
Listing 1.2: A Sample lilo.conf File
# global section boot=/dev/hda3 map=/boot/map install=/boot/boot.b prompt timeout=50
# The Linux boot image image=/boot/vmlinuz-2.4.7-10
label=linux read-only root=/dev/hda3
# additional boot image other=/dev/hda1
With this configuration, the user has five seconds to select either dos to boot Microsoft Windows or linux to boot Linux. If the user does not make a selection, LILO boots Linux after the five seconds have expired. The following section examines each line in this file to see how LILO is configured.
Was this article helpful?