1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
$Id: LiloDefault,v 1.3 1997/06/25 07:33:27 srivasta Exp $
If the post install script finds LILO on the system (/sbin/lilo),
it checks to see if there already exists a configuration file
/etc/lilo.conf. If not, a boilerplate LILO configuration file that
will work with the image just installed, as follows.
It looks into /etc/fstab, looking for the device that the root (/)
directory is on, also, it looks for any partition that may have a boot
sector installed by LILO, ignoring swap, NFS and proc file systems and
floppy drives (if no LILO sector is found, it assumes that the drive
that the root device is on should be where LILO places the block (this
is not good for all installations, but it gives a starting point) and
inserts lines like (assuming the root directory is on /dev/hda4):
----------------------------------------------------------------------
boot=/dev/hda root=/dev/hda4
----------------------------------------------------------------------
and then appends the following:
----------------------------------------------------------------------
compact
install=/boot/boot.b
map=/boot/map
vga=normal
delay=20
image=/vmlinuz
label=Linux
read-only
----------------------------------------------------------------------
|