source: BOOK/boot/x86/grub.xml@ 5a5e71f

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 5a5e71f was aa18ac0, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated trunk book sources to use DocBook-XML DTD 4.5.

  • Property mode set to 100644
File size: 3.3 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">
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=${CLFS}/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
27dd if=${CLFS}/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">/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 &gt; ${CLFS}/boot/grub/menu.lst &lt;&lt; "EOF"
78<literal># Begin /boot/grub/menu.lst
79
80# By default boot the first menu entry.
81default 0
82
83# Allow 30 seconds before booting the default.
84timeout 30
85
86# Use prettier colors.
87color green/black light-green/black
88
89# The first entry is for CLFS.
90title CLFS &version;
91root (hd0,3)
92kernel /boot/clfskernel-&linux-version; root=/dev/hda4</literal>
93EOF</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 &gt;&gt; ${CLFS}/boot/grub/menu.lst &lt;&lt; "EOF"
100<literal>title Red Hat
101root (hd0,2)
102kernel /boot/kernel-2.6.5 root=/dev/hda3
103initrd /boot/initrd-2.6.5</literal>
104EOF</userinput></screen>
105
106</sect1>
Note: See TracBrowser for help on using the repository browser.