home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / debian / docs / ImageLoaders / LiloDefault next >
Encoding:
Text File  |  2005-06-08  |  1.7 KB  |  43 lines

  1.  
  2.   $Id: LiloDefault,v 1.4 2001/08/20 06:31:08 srivasta Exp $
  3.  
  4. If the post install script finds LILO on the system (/sbin/lilo),
  5. it checks to see if there already exists a configuration file
  6. /etc/lilo.conf. If not, a boilerplate LILO configuration file that 
  7. will work with the image just installed, as follows.
  8.  
  9. It looks into /etc/fstab, looking for the device that the root (/)
  10. directory is on, also, it looks for any partition that may have a boot
  11. sector installed by LILO, ignoring swap, NFS and proc file systems and
  12. floppy drives (if no LILO sector is found, it assumes that the drive
  13. that the root device is on should be where LILO places the block (this
  14. is not good for all installations, but it gives a starting point) and
  15. inserts lines like (assuming the root directory is on /dev/hda4):
  16.  
  17. ----------------------------------------------------------------------
  18. boot=/dev/hda root=/dev/hda4
  19. ----------------------------------------------------------------------
  20.  
  21. and then appends the following:
  22.  
  23. ----------------------------------------------------------------------
  24. compact
  25. install=/boot/boot.b
  26. map=/boot/map
  27. vga=normal
  28. delay=20
  29. image=/vmlinuz
  30. label=Linux
  31. read-only
  32. ----------------------------------------------------------------------
  33.  
  34. Recent official kernel image packages (starting with 2.4.X) have
  35. started installing initrd images.  If you install one of these
  36. official images,  you now have to provide lilo with a pointer to the
  37. respective initrd bootimage. Assuming that you are installing kernel
  38. 2.4.X-flavour, you need to add something like this to the lilo.conf:
  39.  
  40. ----------------------------------------------------------------------
  41. initrd=/boot/initrd-2.4.X-flavour
  42. ----------------------------------------------------------------------
  43.