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