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-grub">
|
---|
9 | <?dbhtml filename="grub.html"?>
|
---|
10 |
|
---|
11 | <title>Making the Temporary System Bootable</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-boot-grub">
|
---|
14 | <primary sortas="a-GRUB">GRUB</primary>
|
---|
15 | <secondary>boot, configuring</secondary>
|
---|
16 | </indexterm>
|
---|
17 |
|
---|
18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
19 | href="../../bootable/x86/grub.xml"
|
---|
20 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
21 |
|
---|
22 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
23 | href="../../bootable/x86/grub.xml"
|
---|
24 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
25 |
|
---|
26 | <screen os="d"><userinput>dd if=${LFS}/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
|
---|
27 | dd if=${LFS}/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1</userinput></screen>
|
---|
28 |
|
---|
29 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
30 | href="../../bootable/x86/grub.xml"
|
---|
31 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
32 |
|
---|
33 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
34 | href="../../bootable/x86/grub.xml"
|
---|
35 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
36 |
|
---|
37 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
38 | href="../../bootable/x86/grub.xml"
|
---|
39 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
40 |
|
---|
41 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
42 | href="../../bootable/x86/grub.xml"
|
---|
43 | xpointer="xpointer(//*[@os='h'])"/>
|
---|
44 |
|
---|
45 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
46 | href="../../bootable/x86/grub.xml"
|
---|
47 | xpointer="xpointer(//*[@os='i'])"/>
|
---|
48 |
|
---|
49 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
50 | href="../../bootable/x86/grub.xml"
|
---|
51 | xpointer="xpointer(//*[@os='j'])"/>
|
---|
52 |
|
---|
53 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
54 | href="../../bootable/x86/grub.xml"
|
---|
55 | xpointer="xpointer(//*[@os='k'])"/>
|
---|
56 |
|
---|
57 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
58 | href="../../bootable/x86/grub.xml"
|
---|
59 | xpointer="xpointer(//*[@os='l'])"/>
|
---|
60 |
|
---|
61 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
62 | href="../../bootable/x86/grub.xml"
|
---|
63 | xpointer="xpointer(//*[@os='m'])"/>
|
---|
64 |
|
---|
65 | <para os="n">If all went well, GRUB will have reported finding its files
|
---|
66 | in <filename class="directory">${LFS}/boot/grub</filename>. That's
|
---|
67 | all there is to it. Quit the <command>grub</command> shell:</para>
|
---|
68 |
|
---|
69 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
70 | href="../../bootable/x86/grub.xml"
|
---|
71 | xpointer="xpointer(//*[@os='o'])"/>
|
---|
72 |
|
---|
73 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
74 | href="../../bootable/x86/grub.xml"
|
---|
75 | xpointer="xpointer(//*[@os='p'])"/>
|
---|
76 |
|
---|
77 | <screen><userinput>cat > ${LFS}/boot/grub/menu.lst << "EOF"
|
---|
78 | <literal># Begin /boot/grub/menu.lst
|
---|
79 |
|
---|
80 | # By default boot the first menu entry.
|
---|
81 | default 0
|
---|
82 |
|
---|
83 | # Allow 30 seconds before booting the default.
|
---|
84 | timeout 30
|
---|
85 |
|
---|
86 | # Use prettier colors.
|
---|
87 | color green/black light-green/black
|
---|
88 |
|
---|
89 | # The first entry is for LFS.
|
---|
90 | title LFS &version;
|
---|
91 | root (hd0,3)
|
---|
92 | kernel /boot/lfskernel-&linux-version; root=/dev/hda4</literal>
|
---|
93 | EOF</userinput></screen>
|
---|
94 |
|
---|
95 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
96 | href="../../bootable/x86/grub.xml"
|
---|
97 | xpointer="xpointer(//*[@os='q'])"/>
|
---|
98 |
|
---|
99 | <screen os="r"><userinput>cat >> ${LFS}/boot/grub/menu.lst << "EOF"
|
---|
100 | <literal>title Red Hat
|
---|
101 | root (hd0,2)
|
---|
102 | kernel /boot/kernel-2.6.5 root=/dev/hda3
|
---|
103 | initrd /boot/initrd-2.6.5</literal>
|
---|
104 | EOF</userinput></screen>
|
---|
105 |
|
---|
106 | </sect1>
|
---|