aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08/lilo.sgml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter08/lilo.sgml')
-rw-r--r--chapter08/lilo.sgml36
1 files changed, 36 insertions, 0 deletions
diff --git a/chapter08/lilo.sgml b/chapter08/lilo.sgml
new file mode 100644
index 000000000..381f2dc56
--- /dev/null
+++ b/chapter08/lilo.sgml
@@ -0,0 +1,36 @@
+<sect1 id="ch08-lilo">
+<title>Adding an entry to LILO</title>
+
+<para>
+In order to being able to boot from this partition, we need to update our
+/etc/lilo.conf file. Add the following lines to lilo.conf by running:
+</para>
+
+<literallayout>
+
+<userinput>cat &gt;&gt; /etc/lilo.conf &lt;&lt; "EOF"</userinput>
+image=/boot/lfskernel
+ label=lfs
+ root=&lt;partition&gt;
+ read-only
+<userinput>EOF</userinput>
+
+</literallayout>
+
+<para>
+&lt;partition&gt; must be replaced by your partition's designation (which
+would be /dev/hda5 in my case).
+</para>
+
+<para>
+Now update the boot loader by running:
+</para>
+
+<blockquote><literallayout>
+
+ <userinput>/sbin/lilo</userinput>
+
+</literallayout></blockquote>
+
+</sect1>
+