[3f8be484] | 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" [
|
---|
[3f8be484] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-boot-grub-build" role="wrap">
|
---|
| 9 | <?dbhtml filename="grub-build.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>GRUB-&grub-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-boot-grub-build">
|
---|
| 14 | <primary sortas="a-GRUB">GRUB</primary>
|
---|
| 15 | <secondary>boot</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
[93adf44a] | 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 19 | href="../../final-system/x86/grub.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[3f8be484] | 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of GRUB</title>
|
---|
| 24 |
|
---|
[407772b] | 25 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 26 | href="../../final-system/x86/grub.xml"
|
---|
| 27 | xpointer="xpointer(//*[@os='n1'])"/>
|
---|
| 28 |
|
---|
[37ba094c] | 29 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 30 | href="../../final-system/x86/grub.xml"
|
---|
| 31 | xpointer="xpointer(//*[@os='p1'])"/>
|
---|
| 32 |
|
---|
| 33 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 34 | href="../../final-system/x86/grub.xml"
|
---|
| 35 | xpointer="xpointer(//*[@os='p2'])"/>
|
---|
| 36 |
|
---|
[3f8be484] | 37 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 38 | href="../../final-system/x86/grub.xml"
|
---|
| 39 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
| 40 |
|
---|
| 41 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 42 | href="../../final-system/x86/grub.xml"
|
---|
| 43 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
| 44 |
|
---|
[2013ad9] | 45 | <screen os="aa"><userinput>./configure --prefix=/usr \
|
---|
[07114c98] | 46 | --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>
|
---|
[3f8be484] | 47 |
|
---|
| 48 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 49 | href="../../final-system/x86/grub.xml"
|
---|
| 50 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 51 |
|
---|
| 52 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 53 | href="../../final-system/x86/grub.xml"
|
---|
| 54 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
| 55 |
|
---|
| 56 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 57 | href="../../final-system/x86/grub.xml"
|
---|
[7702d6f] | 58 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
[3f8be484] | 59 |
|
---|
[3f76cac] | 60 | <screen os="ab"><userinput>make DESTDIR=${CLFS} install
|
---|
| 61 | mkdir -v ${CLFS}/boot/grub
|
---|
[040521bc] | 62 | cp -v ${CLFS}/usr/lib/grub/*/stage{1,2} ${CLFS}/boot/grub</userinput></screen>
|
---|
[3f8be484] | 63 |
|
---|
[040521bc] | 64 | <para os="ac">The directory in
|
---|
| 65 | <filename class="directory">${CLFS}/usr/lib/grub</filename> (its name
|
---|
| 66 | depends on your arch) contains a number of <filename>*stage1_5</filename>
|
---|
| 67 | files, different ones for different file systems. Review the files
|
---|
| 68 | available and copy the appropriate ones to the <filename
|
---|
[3f76cac] | 69 | class="directory">${CLFS}/boot/grub</filename> directory. Most users will
|
---|
[3f8be484] | 70 | copy the <filename>e2fs_stage1_5</filename> and/or
|
---|
| 71 | <filename>reiserfs_stage1_5</filename> files.</para>
|
---|
| 72 |
|
---|
| 73 | </sect2>
|
---|
| 74 |
|
---|
| 75 | <sect2 role="content">
|
---|
| 76 | <title/>
|
---|
| 77 |
|
---|
| 78 | <para>Details on this package are located in <xref
|
---|
| 79 | linkend="contents-grub" role="."/></para>
|
---|
| 80 |
|
---|
| 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | </sect1>
|
---|