Quote:
Originally Posted by coldbeer
Question: What is /sbin/lilo doing such that I need to re-run it even though my lilo is already setup up correctly and I just copy in a new bzImage to /boot??
|
When the computer boots up it doesn't know which filing system or operating system is in use. So there are no directories or filenames at this time only a disk with sectors.
All it knows it to look at a small area of disk, load the data into memory and attempt to run the program. This program is the boot loader and in this case it is the lilo boot loader.
In the same way, when the lilo boot loader runs it doesn't know which filing system or operating system is in use so it can't find lilo.conf. It can't find the kernel image either by file name but it has information on where the kernel file is on the disk. This information is given to it when /sbin/lilo is run.
So if you create a new kernel image and copy it to /boot with the same name as the old image it might not be in exactly the same place on the disk as before nor might it be the same size.
But when you run /sbin/lilo it looks at lilo.conf and then recreates the boot loader with the location of every kernel image referenced in lilo.conf.