source: BOOK/boot/x86_64-64/lilo.xml@ 2d83034

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2d83034 was 4e60ea5, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Updated GRUB to 1.98

  • Property mode set to 100644
File size: 4.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-boot-lilo">
9 <?dbhtml filename="lilo.html"?>
10
11 <title>Making the CLFS System Bootable</title>
12
13 <indexterm zone="ch-boot-lilo">
14 <primary sortas="a-Lilo">Lilo</primary>
15 <secondary>configuring</secondary>
16 </indexterm>
17
18<!--
19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
20 href="../../final-system/x86/grub.xml"
21 xpointer="xpointer(//*[@os='n1'])"/>
22-->
23
24 <para os="a">You are nearly ready to boot to the new temporary system.
25 One of the last things to do is to ensure that the system can be booted.
26 The instructions below apply only to x86_64 machines on which Lilo is going
27 to be installed. Information on using a pre-installed GRUB on machines
28 currently running as x86 or x86_64 multilib should be available in the
29 usual resource-specific locations for those architectures. If you have
30 installed an x86 version of Lilo, these instructions should be modified
31 to refer to the <command>lilo</command> and <command>keytab-lilo.pl
32 </command> commands you installed on the host system.</para>
33
34<!--
35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
36 href="../x86/grub.xml"
37 xpointer="xpointer(//*[@os='b'])"/>
38-->
39
40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
41 href="../../bootable/x86_64-64/lilo.xml"
42 xpointer="xpointer(//*[@os='c'])"/>
43
44 <para os="d">Earlier, we compiled and installed the Lilo boot loader software
45 in preparation for this step. The procedure involves writing a boot image to
46 a specific location on the hard drive. If you have a floppy disk drive, or
47 if you have installed a CD recording program, we highly recommend using
48 <command>mkrescue</command> to create a Lilo boot floppy, or CD (using e.g.
49 <command>dvdrecord</command> from dvdrtools) as a test and as a backup.</para>
50
51 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
52 href="../../bootable/x86_64-64/lilo.xml"
53 xpointer="xpointer(//*[@os='e'])"/>
54
55<screen os="f" role="nodump"><userinput>keytab-lilo.pl uk >${CLFS}/boot/uk.ktl</userinput></screen>
56
57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
58 href="../../bootable/x86_64-64/lilo.xml"
59 xpointer="xpointer(//*[@os='g'])"/>
60
61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
62 href="../../bootable/x86_64-64/lilo.xml"
63 xpointer="xpointer(//*[@os='i'])"/>
64
65<screen os="j" role="nodump"><userinput>cat &gt; ${CLFS}/etc/lilo.conf &lt;&lt; "EOF"
66<literal># Begin /etc/lilo.conf
67# lilo.conf
68#
69# global options
70boot=/dev/&lt;bootdisk&gt;
71keytable=/boot/&lt;keytable&gt;
72lba32
73map=/boot/map
74prompt
75
76# set the name of the default image to boot
77default=clfs
78
79# define an image
80image=/boot/clfskernel&linux-version;
81 label=clfs
82 root=/dev/&lt;partition&gt;
83 read-only
84# optionally add parameters to pass, e.g.
85# append="video=radeonfb:1024x768-16@70"
86
87# if you had an existing system, you could
88# add its details here.
89EOF</literal></userinput></screen>
90
91
92 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
93 href="../../bootable/x86_64-64/lilo.xml"
94 xpointer="xpointer(//*[@os='k'])"/>
95
96 <warning os="l">
97 <para>The following command will overwrite any current boot loader.
98 Do not run the command if this is not desired. If you have
99 cross-compiled on a different machine from the target, you must
100 install the bootloader on the target machine, the installed boot
101 block is not a file which can be copied with <command>tar</command>.
102 </para>
103 </warning>
104
105 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
106 href="../../bootable/x86_64-64/lilo.xml"
107 xpointer="xpointer(//*[@os='m'])"/>
108
109<screen os="n" role="nodump"><userinput>/tools/bin/lilo.static -v -C ${CLFS}/etc/lilo.conf</userinput></screen>
110
111 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
112 href="../../bootable/x86_64-64/lilo.xml"
113 xpointer="xpointer(//*[@os='o'])"/>
114
115</sect1>
Note: See TracBrowser for help on using the repository browser.