source: BOOK/boot/x86/grub-build.xml@ 3d92c8d

sysvinit
Last change on this file since 3d92c8d was 34aafdb, checked in by Chris Staub <chris@…>, 10 years ago

Added another command explanation to GRUB

  • Property mode set to 100644
File size: 2.7 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-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
18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
19 href="../../final-system/x86/grub.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of GRUB</title>
24
25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
26 href="../../final-system/x86/grub.xml"
27 xpointer="xpointer(//*[@os='n1'])"/>
28
29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
30 href="../../final-system/x86/grub.xml"
31 xpointer="xpointer(//*[@os='s1'])"/>
32
33<screen os="s2"><userinput>cp -v grub-core/gnulib/stdio.in.h{,.orig}
34sed -e '/gets is a/d' grub-core/gnulib/stdio.in.h.orig &gt; grub-core/gnulib/stdio.in.h</userinput></screen>
35
36 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
37 href="../../final-system/x86/grub.xml"
38 xpointer="xpointer(//*[@os='a'])"/>
39
40<screen os="ab"><userinput>./configure --prefix=/tools \
41 --build=${CLFS_HOST} --host=${CLFS_TARGET} \
42 --disable-werror --enable-grub-mkfont=no --with-bootdir=tools/boot</userinput></screen>
43
44<para os="b">The meaning of the new configure option:</para>
45
46 <variablelist os="bc">
47
48 <varlistentry>
49 <term><parameter>--enable-grub-mkfont=no</parameter></term>
50 <listitem><para>Prevents GRUB from trying to build
51 <command>grub-mkfont</command>, which requires Freetype.</para></listitem>
52 </varlistentry>
53
54 <varlistentry>
55 <term><parameter>--with-bootdir=tools/boot</parameter></term>
56 <listitem><para>This modifies GRUB's default location where it
57 searches for kernel images and installs its bootloader files.</para></listitem>
58 </varlistentry>
59
60 </variablelist>
61
62 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
63 href="../../final-system/x86/grub.xml"
64 xpointer="xpointer(//*[@os='c'])"/>
65
66 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
67 href="../../final-system/x86/grub.xml"
68 xpointer="xpointer(//*[@os='d'])"/>
69
70 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
71 href="../../final-system/x86/grub.xml"
72 xpointer="xpointer(//*[@os='f'])"/>
73
74<screen os="ag"><userinput>make install</userinput></screen>
75
76 </sect2>
77
78 <sect2 role="content">
79 <title/>
80
81 <para>Details on this package are located in <xref
82 linkend="contents-grub" role="."/></para>
83
84 </sect2>
85
86</sect1>
Note: See TracBrowser for help on using the repository browser.