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