config-lilo.xml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <sect2>
  2. <title>Configuring Lilo</title>
  3. <para>
  4. We're not going to create lilo's configuration file from scratch, but we'll
  5. use the file from your normal Linux system. This file is different on every
  6. machine and thus I can't create it here. Since you would want to have the
  7. same options regarding lilo as you have when you're using your normal Linux
  8. system you would create the file exactly as it is on the normal system.
  9. </para>
  10. <para>
  11. Copy the Lilo configuration file and kernel images that Lilo uses by
  12. running the following commands from a shell on your normal Linux system.
  13. Don't execute these commands from your chroot'ed shell.
  14. </para>
  15. <blockquote><literallayout>
  16. <userinput>cp /etc/lilo.conf $LFS/etc</userinput>
  17. <userinput>cp /boot/&lt;kernel images&gt; $LFS/boot</userinput>
  18. </literallayout></blockquote>
  19. <para>
  20. Before you can execute the second command you need to know the names of
  21. the kernel images. You can't just copy all files from the /boot
  22. directory. The /etc/lilo.conf file contains the names of the kernel
  23. images you're using. Open the file and look for lines like this:
  24. </para>
  25. <blockquote><literallayout>
  26. image=/boot/vmlinuz
  27. </literallayout></blockquote>
  28. <para>
  29. Look for all <emphasis>image</emphasis> variables and their values
  30. represent the name and location of the image files. These files will
  31. usually be in /boot but they might be in other directories as well,
  32. depending on your distribution's conventions.
  33. </para>
  34. </sect2>