Removed LILO and Bin86. Replaced them with Grub

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2774 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2003-09-11 21:35:35 +00:00
parent c94dd38cc7
commit 955533beaf
33 changed files with 140 additions and 349 deletions

View File

@ -6,7 +6,6 @@
&aa-autoconf; &aa-autoconf;
&aa-automake; &aa-automake;
&aa-bash; &aa-bash;
&aa-bin86;
&aa-binutils; &aa-binutils;
&aa-bison; &aa-bison;
&aa-bzip2; &aa-bzip2;
@ -23,6 +22,7 @@
&aa-glibc; &aa-glibc;
&aa-grep; &aa-grep;
&aa-groff; &aa-groff;
&aa-grub;
&aa-gzip; &aa-gzip;
&aa-inetutils; &aa-inetutils;
&aa-kbd; &aa-kbd;
@ -30,7 +30,6 @@
&aa-bootscripts; &aa-bootscripts;
&aa-lfs-utils; &aa-lfs-utils;
&aa-libtool; &aa-libtool;
&aa-lilo;
&aa-kernel; &aa-kernel;
&aa-m4; &aa-m4;
&aa-make; &aa-make;

View File

@ -1,16 +0,0 @@
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Bin86 Installation Dependencies</title>
<para>(Last checked against version &bin86-depversion;.)</para>
<literallayout>Bash: sh
Binutils: as, ld, strip
Fileutils: chmod, install, ln, mv
Gcc: cc, cc1, collect2, cpp0
Make: make
Sed: sed</literallayout>
</sect2>

View File

@ -1,34 +0,0 @@
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2><title>Descriptions</title>
<para>(Last checked against version &bin86-contversion;.)</para>
<sect3><title>Program file descriptions</title>
<sect4><title>as86</title>
<para>as86 is an assembler for the 8086...80386
processors.</para></sect4>
<sect4><title>as86_encap</title>
<para>as86_encap is a shell script to call as86 and convert the created binary
into a C file prog.v to be included in or linked with programs like boot
block installers.</para></sect4>
<sect4><title>ld86</title>
<para>ld86 understands only the object files produced by the as86 assembler. It
can link them into either an impure or a
separate I&amp;D executable.</para></sect4>
<sect4><title>nm86</title>
<para>The symbol table of the binary file.</para></sect4>
<sect4><title>objdump86</title>
<para>Dumps detailed information about a binary file.</para></sect4>
<sect4><title>size86</title>
<para>Summary sizes of the data in a binary file.</para></sect4>
</sect3>
</sect2>

View File

@ -1,7 +0,0 @@
<sect2>
<title>Official Download Location</title>
<para><literallayout>Bin86 (&bin86-version;):
<ulink url="http://www.cix.co.uk/~mayday/"/></literallayout></para>
</sect2>

View File

@ -1,14 +0,0 @@
<sect2><title>Contents of Bin86</title>
<para>(Last checked against version &bin86-contversion;.)</para>
<para>Bin86 is a simple assembler and linker for 8086 - 80386 machine
code.</para>
<para>Bin86 installs the following:</para>
<sect3><title>Program Files</title>
<para>as86, as86_encap, ld86, nm86 (link to objdump86), objdump86 and
size86 (link to objdump86)</para></sect3>
</sect2>

View File

@ -1,13 +0,0 @@
<sect1 id="aa-bin86" xreflabel="Bin86">
<title>Bin86</title>
<?dbhtml filename="bin86.html" dir="appendixa"?>
<para>For installation instructions see <xref linkend="ch06-bin86"/>.</para>
&aa-bin86-down;
&aa-bin86-shortdesc;
&aa-bin86-desc;
&aa-bin86-dep;
</sect1>

9
appendixa/grub-dep.xml Normal file
View File

@ -0,0 +1,9 @@
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Grub Installation Dependencies</title>
<literallayout>(To be determined)</literallayout>
</sect2>

7
appendixa/grub-desc.xml Normal file
View File

@ -0,0 +1,7 @@
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2><title>Descriptions</title>
<para>(To be determined)</para>
</sect2>

7
appendixa/grub-down.xml Normal file
View File

@ -0,0 +1,7 @@
<sect2>
<title>Official Download Location</title>
<para><literallayout>Grub (&grub-version;):
<ulink url="ftp://alpha.gnu.org/pub/gnu/grub/"/>
</literallayout></para>
</sect2>

View File

@ -0,0 +1,5 @@
<sect2><title>Contents of Grub</title>
<para>(To be determined)</para>
</sect2>

13
appendixa/grub.xml Normal file
View File

@ -0,0 +1,13 @@
<sect1 id="aa-grub" xreflabel="Grub">
<title>Grub</title>
<?dbhtml filename="grub.html" dir="appendixa"?>
<para>For installation instructions see <xref linkend="ch06-grub"/>.</para>
&aa-grub-down;
&aa-grub-shortdesc;
&aa-grub-desc;
&aa-grub-dep;
</sect1>

View File

@ -1,18 +0,0 @@
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Lilo Installation Dependencies</title>
<para>(Last checked against version &lilo-depversion;.)</para>
<literallayout>Bash: sh
Bin86: as86, ld86
Binutils: as, ld, strip
Fileutils: cp, dd, ln
Gcc: cc, cc1, collect2, cpp0
Make: make
Sed: sed
Textutils: cat</literallayout>
</sect2>

View File

@ -1,23 +0,0 @@
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2><title>Descriptions</title>
<para>(Last checked against version &lilo-contversion;.)</para>
<sect3><title>Program file descriptions</title>
<sect4><title>lilo</title>
<para>lilo installs the Linux boot loader which is used to start a Linux
system.</para></sect4>
<sect4><title>mkrescue</title>
<para>mkrescue makes a bootable rescue floppy using the existing kernel
and any initial ramdisk.</para></sect4>
<sect4><title>keytab-lilo.pl</title>
<para>keytab-lilo.pl compiles keytable definitions into a format which
lilo can use in order to set the keyboard type during boot.</para></sect4>
</sect3>
</sect2>

View File

@ -1,7 +0,0 @@
<sect2>
<title>Official Download Location</title>
<para><literallayout>Lilo (&lilo-version;):
<ulink url="ftp://ibiblio.org/pub/Linux/system/boot/lilo/"/>
<ulink url="http://ibiblio.org/pub/Linux/system/boot/lilo/"/></literallayout></para>
</sect2>

View File

@ -1,12 +0,0 @@
<sect2><title>Contents of Lilo</title>
<para>(Last checked against version &lilo-contversion;.)</para>
<para>Lilo is the LInux LOader.</para>
<para>Lilo installs the following:</para>
<sect3><title>Program Files</title>
<para>lilo, mkrescue and keytab-lilo.pl</para></sect3>
</sect2>

View File

@ -1,13 +0,0 @@
<sect1 id="aa-lilo" xreflabel="Lilo">
<title>Lilo</title>
<?dbhtml filename="lilo.html" dir="appendixa"?>
<para>For installation instructions see <xref linkend="ch06-lilo"/>.</para>
&aa-lilo-down;
&aa-lilo-shortdesc;
&aa-lilo-desc;
&aa-lilo-dep;
</sect1>

View File

@ -20,8 +20,6 @@ to which it belongs.</para>
<listitem><para>arch : <xref linkend="aa-utillinux"/></para></listitem> <listitem><para>arch : <xref linkend="aa-utillinux"/></para></listitem>
<listitem><para>arp : <xref linkend="aa-net-tools"/></para></listitem> <listitem><para>arp : <xref linkend="aa-net-tools"/></para></listitem>
<listitem><para>as : <xref linkend="aa-binutils"/></para></listitem> <listitem><para>as : <xref linkend="aa-binutils"/></para></listitem>
<listitem><para>as86 : <xref linkend="aa-bin86"/></para></listitem>
<listitem><para>as86_encap : <xref linkend="aa-bin86"/></para></listitem>
<listitem><para>attrs : <xref linkend="aa-perl"/></para></listitem> <listitem><para>attrs : <xref linkend="aa-perl"/></para></listitem>
<listitem><para>autoconf : <xref linkend="aa-autoconf"/></para></listitem> <listitem><para>autoconf : <xref linkend="aa-autoconf"/></para></listitem>
<listitem><para>autoheader : <xref linkend="aa-autoconf"/></para></listitem> <listitem><para>autoheader : <xref linkend="aa-autoconf"/></para></listitem>
@ -250,7 +248,6 @@ to which it belongs.</para>
<listitem><para>kbdrate : <xref linkend="aa-kbd"/></para></listitem> <listitem><para>kbdrate : <xref linkend="aa-kbd"/></para></listitem>
<listitem><para>kbd_mode : <xref linkend="aa-kbd"/></para></listitem> <listitem><para>kbd_mode : <xref linkend="aa-kbd"/></para></listitem>
<listitem><para>kernelversion : <xref linkend="aa-modutils"/></para></listitem> <listitem><para>kernelversion : <xref linkend="aa-modutils"/></para></listitem>
<listitem><para>keytab-lilo.pl : <xref linkend="aa-lilo"/></para></listitem>
<listitem><para>kill : <xref linkend="aa-procps"/></para></listitem> <listitem><para>kill : <xref linkend="aa-procps"/></para></listitem>
<listitem><para>kill : <xref linkend="aa-coreutils"/></para></listitem> <listitem><para>kill : <xref linkend="aa-coreutils"/></para></listitem>
<listitem><para>killall : <xref linkend="aa-psmisc"/></para></listitem> <listitem><para>killall : <xref linkend="aa-psmisc"/></para></listitem>
@ -262,7 +259,6 @@ to which it belongs.</para>
<listitem><para>lastlog : <xref linkend="aa-shadow"/></para></listitem> <listitem><para>lastlog : <xref linkend="aa-shadow"/></para></listitem>
<listitem><para>ld : <xref linkend="aa-binutils"/></para></listitem> <listitem><para>ld : <xref linkend="aa-binutils"/></para></listitem>
<listitem><para>ld.so : <xref linkend="aa-glibc"/></para></listitem> <listitem><para>ld.so : <xref linkend="aa-glibc"/></para></listitem>
<listitem><para>ld86 : <xref linkend="aa-bin86"/></para></listitem>
<listitem><para>ldconfig : <xref linkend="aa-glibc"/></para></listitem> <listitem><para>ldconfig : <xref linkend="aa-glibc"/></para></listitem>
<listitem><para>ldd : <xref linkend="aa-glibc"/></para></listitem> <listitem><para>ldd : <xref linkend="aa-glibc"/></para></listitem>
<listitem><para>lddlibc4 : <xref linkend="aa-glibc"/></para></listitem> <listitem><para>lddlibc4 : <xref linkend="aa-glibc"/></para></listitem>
@ -321,7 +317,6 @@ to which it belongs.</para>
<listitem><para>libutil : <xref linkend="aa-glibc"/></para></listitem> <listitem><para>libutil : <xref linkend="aa-glibc"/></para></listitem>
<listitem><para>libuuid : <xref linkend="aa-e2fsprogs"/></para></listitem> <listitem><para>libuuid : <xref linkend="aa-e2fsprogs"/></para></listitem>
<listitem><para>libz : <xref linkend="aa-zlib"/></para></listitem> <listitem><para>libz : <xref linkend="aa-zlib"/></para></listitem>
<listitem><para>lilo : <xref linkend="aa-lilo"/></para></listitem>
<listitem><para>line : <xref linkend="aa-utillinux"/></para></listitem> <listitem><para>line : <xref linkend="aa-utillinux"/></para></listitem>
<listitem><para>link : <xref linkend="aa-coreutils"/></para></listitem> <listitem><para>link : <xref linkend="aa-coreutils"/></para></listitem>
<listitem><para>linux : <xref linkend="aa-kernel"/></para></listitem> <listitem><para>linux : <xref linkend="aa-kernel"/></para></listitem>
@ -373,7 +368,6 @@ to which it belongs.</para>
<listitem><para>mklost+found : <xref linkend="aa-e2fsprogs"/></para></listitem> <listitem><para>mklost+found : <xref linkend="aa-e2fsprogs"/></para></listitem>
<listitem><para>mknod : <xref linkend="aa-coreutils"/></para></listitem> <listitem><para>mknod : <xref linkend="aa-coreutils"/></para></listitem>
<listitem><para>mkpasswd : <xref linkend="aa-shadow"/></para></listitem> <listitem><para>mkpasswd : <xref linkend="aa-shadow"/></para></listitem>
<listitem><para>mkrescue : <xref linkend="aa-lilo"/></para></listitem>
<listitem><para>mkswap : <xref linkend="aa-utillinux"/></para></listitem> <listitem><para>mkswap : <xref linkend="aa-utillinux"/></para></listitem>
<listitem><para>mktemp : <xref linkend="aa-lfs-utils"/></para></listitem> <listitem><para>mktemp : <xref linkend="aa-lfs-utils"/></para></listitem>
<listitem><para>mk_cmds : <xref linkend="aa-e2fsprogs"/></para></listitem> <listitem><para>mk_cmds : <xref linkend="aa-e2fsprogs"/></para></listitem>
@ -413,14 +407,12 @@ to which it belongs.</para>
<listitem><para>nisdomainname : <xref linkend="aa-net-tools"/></para></listitem> <listitem><para>nisdomainname : <xref linkend="aa-net-tools"/></para></listitem>
<listitem><para>nl : <xref linkend="aa-coreutils"/></para></listitem> <listitem><para>nl : <xref linkend="aa-coreutils"/></para></listitem>
<listitem><para>nm : <xref linkend="aa-binutils"/></para></listitem> <listitem><para>nm : <xref linkend="aa-binutils"/></para></listitem>
<listitem><para>nm86 : <xref linkend="aa-bin86"/></para></listitem>
<listitem><para>nohup : <xref linkend="aa-coreutils"/></para></listitem> <listitem><para>nohup : <xref linkend="aa-coreutils"/></para></listitem>
<listitem><para>nroff : <xref linkend="aa-groff"/></para></listitem> <listitem><para>nroff : <xref linkend="aa-groff"/></para></listitem>
<listitem><para>nscd : <xref linkend="aa-glibc"/></para></listitem> <listitem><para>nscd : <xref linkend="aa-glibc"/></para></listitem>
<listitem><para>nscd_nischeck : <xref linkend="aa-glibc"/></para></listitem> <listitem><para>nscd_nischeck : <xref linkend="aa-glibc"/></para></listitem>
<listitem><para>objcopy : <xref linkend="aa-binutils"/></para></listitem> <listitem><para>objcopy : <xref linkend="aa-binutils"/></para></listitem>
<listitem><para>objdump : <xref linkend="aa-binutils"/></para></listitem> <listitem><para>objdump : <xref linkend="aa-binutils"/></para></listitem>
<listitem><para>objdump86 : <xref linkend="aa-bin86"/></para></listitem>
<listitem><para>od : <xref linkend="aa-coreutils"/></para></listitem> <listitem><para>od : <xref linkend="aa-coreutils"/></para></listitem>
<listitem><para>oldps : <xref linkend="aa-procps"/></para></listitem> <listitem><para>oldps : <xref linkend="aa-procps"/></para></listitem>
<listitem><para>Opcode : <xref linkend="aa-perl"/></para></listitem> <listitem><para>Opcode : <xref linkend="aa-perl"/></para></listitem>
@ -546,7 +538,6 @@ to which it belongs.</para>
<listitem><para>shtags.pl : <xref linkend="aa-vim"/></para></listitem> <listitem><para>shtags.pl : <xref linkend="aa-vim"/></para></listitem>
<listitem><para>shutdown : <xref linkend="aa-sysvinit"/></para></listitem> <listitem><para>shutdown : <xref linkend="aa-sysvinit"/></para></listitem>
<listitem><para>size : <xref linkend="aa-binutils"/></para></listitem> <listitem><para>size : <xref linkend="aa-binutils"/></para></listitem>
<listitem><para>size86 : <xref linkend="aa-bin86"/></para></listitem>
<listitem><para>skill : <xref linkend="aa-procps"/></para></listitem> <listitem><para>skill : <xref linkend="aa-procps"/></para></listitem>
<listitem><para>slattach : <xref linkend="aa-net-tools"/></para></listitem> <listitem><para>slattach : <xref linkend="aa-net-tools"/></para></listitem>
<listitem><para>sleep : <xref linkend="aa-coreutils"/></para></listitem> <listitem><para>sleep : <xref linkend="aa-coreutils"/></para></listitem>

View File

@ -56,6 +56,8 @@
<listitem><para>gcc-2.95.3-2.patch</para></listitem> <listitem><para>gcc-2.95.3-2.patch</para></listitem>
<listitem><para>gcc-3.3.1-no_fixincludes-2.patch</para></listitem> <listitem><para>gcc-3.3.1-no_fixincludes-2.patch</para></listitem>
<listitem><para>gcc-3.3.1-specs.patch</para></listitem> <listitem><para>gcc-3.3.1-specs.patch</para></listitem>
<listitem><para>grub-0.93</para></listitem>
<listitem><para>grub-0.93-gcc33-1.patch</para></listitem>
<listitem><para>inetutils-1.4.2</para></listitem> <listitem><para>inetutils-1.4.2</para></listitem>
<listitem><para>lfs-utils-0.3</para></listitem> <listitem><para>lfs-utils-0.3</para></listitem>
<listitem><para>ncurses-5.3-etip.patch</para></listitem> <listitem><para>ncurses-5.3-etip.patch</para></listitem>
@ -67,12 +69,14 @@
<listitem><para>Removed: <listitem><para>Removed:
<itemizedlist> <itemizedlist>
<listitem><para>bin86-0.16.3</para></listitem>
<listitem><para>fileutils-4.1</para></listitem> <listitem><para>fileutils-4.1</para></listitem>
<listitem><para>fileutils-4.1.patch</para></listitem> <listitem><para>fileutils-4.1.patch</para></listitem>
<listitem><para>findutils-4.1-segfault.patch</para></listitem> <listitem><para>findutils-4.1-segfault.patch</para></listitem>
<listitem><para>findutils-4.1.patch</para></listitem> <listitem><para>findutils-4.1.patch</para></listitem>
<listitem><para>gcc-3.2.3-mmap_test.patch</para></listitem> <listitem><para>gcc-3.2.3-mmap_test.patch</para></listitem>
<listitem><para>gzip-1.2.4b.patch</para></listitem> <listitem><para>gzip-1.2.4b.patch</para></listitem>
<listitem><para>lilo-22.2</para></listitem>
<listitem><para>netkit-base-0.17</para></listitem> <listitem><para>netkit-base-0.17</para></listitem>
<listitem><para>sh-utils-2.0</para></listitem> <listitem><para>sh-utils-2.0</para></listitem>
<listitem><para>sh-utils-2.0.patch</para></listitem> <listitem><para>sh-utils-2.0.patch</para></listitem>
@ -83,6 +87,9 @@
</itemizedlist> </itemizedlist>
</para></listitem> </para></listitem>
<listitem><para>September 11th, 2003 [gerard]: Removed Bin86 and LILO and
replaced it with Grub.</para></listitem>
<listitem><para>September 11th, 2003 [jeremy]: Dropped non-toolchain tests <listitem><para>September 11th, 2003 [jeremy]: Dropped non-toolchain tests
to optional actions. Added a note to use the wiki for failed tests.</para></listitem> to optional actions. Added a note to use the wiki for failed tests.</para></listitem>

View File

@ -54,9 +54,6 @@ Automake (&automake-version;) - &automake-size;:
Bash (&bash-version;) - &bash-size;: Bash (&bash-version;) - &bash-size;:
<ulink url="http://freshmeat.net/projects/gnubash/"/> <ulink url="http://freshmeat.net/projects/gnubash/"/>
Bin86 (&bin86-version;) - &bin86-size;:
<ulink url="http://freshmeat.net/projects/bin86/"/>
Binutils (&binutils-version;) - &binutils-size;: Binutils (&binutils-version;) - &binutils-size;:
<ulink url="http://freshmeat.net/projects/binutils/"/> <ulink url="http://freshmeat.net/projects/binutils/"/>
@ -123,6 +120,9 @@ Grep (&grep-version;) - &grep-size;:
Groff (&groff-version;) - &groff-size;: Groff (&groff-version;) - &groff-size;:
<ulink url="http://freshmeat.net/projects/groff/"/> <ulink url="http://freshmeat.net/projects/groff/"/>
Grub (&grub-version;) - &grub-size;:
<ulink url="ftp://alpha.gnu.org/pub/gnu/grub/"/>
Gzip (&gzip-version;) - &gzip-size;: Gzip (&gzip-version;) - &gzip-size;:
<ulink url="ftp://alpha.gnu.org/gnu/gzip/"/> <ulink url="ftp://alpha.gnu.org/gnu/gzip/"/>
@ -144,9 +144,6 @@ Lfs-Utils (&lfs-utils-version;) - &lfs-utils-size;:
Libtool (&libtool-version;) - &libtool-size;: Libtool (&libtool-version;) - &libtool-size;:
<ulink url="http://freshmeat.net/projects/libtool/"/> <ulink url="http://freshmeat.net/projects/libtool/"/>
Lilo (&lilo-version;) - &lilo-size;:
<ulink url="http://freshmeat.net/projects/lilo/"/>
Linux (&kernel-version;) - &kernel-size;: Linux (&kernel-version;) - &kernel-size;:
<ulink url="http://freshmeat.net/projects/linux/"/> <ulink url="http://freshmeat.net/projects/linux/"/>
@ -271,6 +268,9 @@ GCC Suppress Libiberty Patch:
Glibc Sscanf Patch: Glibc Sscanf Patch:
<ulink url="&http;/glibc-2.3.2-sscanf-1.patch"/> <ulink url="&http;/glibc-2.3.2-sscanf-1.patch"/>
Grub Patch (&grub-patch-version;) - &grub-patch-size;:
<ulink url="&http;/grub-&grub-patch-version;.patch"/>
Kbd Patch (&kbd-patch-version;) - &kbd-patch-size;: Kbd Patch (&kbd-patch-version;) - &kbd-patch-size;:
<ulink url="&http;/kbd-&kbd-patch-version;.patch"/> <ulink url="&http;/kbd-&kbd-patch-version;.patch"/>

View File

@ -1,26 +0,0 @@
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Installation of Bin86</title>
<para>This package is only needed if you decide to use Lilo on your LFS
system. If you're going to use something else like Grub you won't need
bin86. Check the documentation for your favorite boot loader to see if
you need the bin86 package (usually only ld86 and/or as86 from this
package are required).</para>
<para>Keep in mind, though, that it's not just boot
loaders that use the bin86 package. There is always the chance that some
other package needs programs from this package, so keep that in mind if
you decide to skip this.</para>
<para>Compile the package:</para>
<para><screen><userinput>make</userinput></screen></para>
<para>And install it:</para>
<para><screen><userinput>make PREFIX=/usr install</userinput></screen></para>
</sect2>

View File

@ -1,12 +0,0 @@
<sect1 id="ch06-bin86">
<title>Installing Bin86-&bin86-version;</title>
<?dbhtml filename="bin86.html" dir="chapter06"?>
<screen>Estimated build time: &bin86-time;
Estimated required disk space: &bin86-compsize;</screen>
&aa-bin86-shortdesc;
&aa-bin86-dep;
&c6-bin86-inst;
</sect1>

View File

@ -41,16 +41,15 @@
&c6-bash; &c6-bash;
&c6-file; &c6-file;
&c6-libtool; &c6-libtool;
&c6-bin86;
&c6-bzip2; &c6-bzip2;
&c6-ed; &c6-ed;
&c6-kbd; &c6-kbd;
&c6-diffutils; &c6-diffutils;
&c6-e2fsprogs; &c6-e2fsprogs;
&c6-grep; &c6-grep;
&c6-grub;
&c6-gzip; &c6-gzip;
&c6-man; &c6-man;
&c6-lilo;
&c6-make; &c6-make;
&c6-modutils; &c6-modutils;
&c6-patch; &c6-patch;

36
chapter06/grub-inst.xml Normal file
View File

@ -0,0 +1,36 @@
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Installation of Grub</title>
<para>Grub needs a patch applied that fixes a compile problem with
GCC-3.3.1:</para>
<para><screen><userinput>patch -Np1 -i ../grub-&grub-patch-version;.patch</userinput></screen></para>
<para>Prepare Grub for compilation:</para>
<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
<para>Compile the package:</para>
<para><screen><userinput>make</userinput></screen></para>
<para>And install it:</para>
<para><screen><userinput>make install
mkdir /boot/grub
cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen></para>
<para>Replace <filename class="directory">i386-pc</filename> with whatever
directory is appropriate for your hardware.</para>
<para>The <filename class="directory">i386-pc</filename> directory also
contains a number of <filename>*stage1_5</filename> files, different ones
for different filesystems. Have a look at the ones available and copy the
appropriate ones to the <filename class="directory">/boot/grub</filename>
directory. Most people will copy the <filename>e2fs_stage1_5</filename>
and/or <filename>reiserfs_stage1_5</filename> files.</para>
</sect2>

12
chapter06/grub.xml Normal file
View File

@ -0,0 +1,12 @@
<sect1 id="ch06-grub">
<title>Installing Grub-&grub-version;</title>
<?dbhtml filename="grub.html" dir="chapter06"?>
<screen>Estimated build time: &grub-time;
Estimated required disk space: &grub-compsize;</screen>
&aa-grub-shortdesc;
&aa-grub-dep;
&c6-grub-inst;
</sect1>

View File

@ -1,28 +0,0 @@
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Installation of Lilo</title>
<para>We have chosen Lilo as a boot loader because we feel comfortable with it, but you
may wish to choose another. Fabio Fracassi has written a hint on
GRUB, which is available at <ulink url="&hints-root;grub-howto.txt"/>.</para>
<para>Compile Lilo:</para>
<para><screen><userinput>make</userinput></screen></para>
<para>And install it:</para>
<para><screen><userinput>make install</userinput></screen></para>
<para>At the end of the installation, a message will appear stating that
<filename>/sbin/lilo</filename> has to be executed. This is pointless because
the <filename>/etc/lilo.conf</filename> file isn't present yet. We will
complete the installation of lilo in Chapter 8.</para>
<para>The standard LILO prompt, or menu, may be replaced by the
LFS logo or any logo you like. Martin Imobersteg has written a
hint about this, which is located at
<ulink url="&hints-root;bootlogo.txt"/>.</para>
</sect2>

View File

@ -1,12 +0,0 @@
<sect1 id="ch06-lilo">
<title>Installing Lilo-&lilo-version;</title>
<?dbhtml filename="lilo.html" dir="chapter06"?>
<screen>Estimated build time: &lilo-time;
Estimated required disk space: &lilo-compsize;</screen>
&aa-lilo-shortdesc;
&aa-lilo-dep;
&c6-lilo-inst;
</sect1>

View File

@ -5,6 +5,6 @@
&c8-introduction; &c8-introduction;
&c8-fstab; &c8-fstab;
&c8-kernel; &c8-kernel;
&c8-lilo; &c8-grub;
</chapter> </chapter>

8
chapter08/grub.xml Normal file
View File

@ -0,0 +1,8 @@
<sect1 id="ch08-grub">
<title>Making the LFS system bootable</title>
<?dbhtml filename="grub.html" dir="chapter08"?>
<para>(To be filled in)</para>
</sect1>

View File

@ -1,48 +0,0 @@
<sect1 id="ch08-lilo">
<title>Making the LFS system bootable</title>
<?dbhtml filename="lilo.html" dir="chapter08"?>
<para>In order to be able to boot the LFS system, we need to update our
bootloader. We're assuming that your host system is using Lilo (since
that's the most commonly used boot loader at the moment).</para>
<para>We will not be running the lilo program inside chroot. Running lilo
inside chroot can have fatal side-effects which render your MBR useless
and you'd need a boot disk to be able to start any Linux system (either
the host system or the LFS system).</para>
<para>First we'll exit chroot and copy the lfskernel file to the host
system:</para>
<para><screen><userinput>logout</userinput>
<userinput>cp $LFS/boot/lfskernel /boot</userinput></screen></para>
<para>The next step is adding an entry to /etc/lilo.conf so that we can
choose LFS when booting the computer:</para>
<para><screen><userinput>cat &gt;&gt; /etc/lilo.conf &lt;&lt; "EOF"</userinput>
image=/boot/lfskernel
label=lfs
root=&lt;partition&gt;
read-only
<userinput>EOF</userinput></screen></para>
<para>&lt;partition&gt; must be replaced with the LFS
partition's designation.</para>
<para>Also note that if you are using reiserfs for your root partition,
the line <userinput>read-only</userinput> should be changed to
<userinput>read-write</userinput>.</para>
<para>Now, update the boot loader by running:</para>
<para><screen><userinput>/sbin/lilo -v</userinput></screen></para>
<para>The last step is synchronizing the host system's lilo
configuration files with the LFS system's:</para>
<para><screen><userinput>cp /etc/lilo.conf $LFS/etc
cp $(grep "image.*=" /etc/lilo.conf | cut -f 2 -d "=") $LFS/boot</userinput></screen></para>
</sect1>

View File

@ -1,20 +0,0 @@
<!ENTITY c4-bin86 SYSTEM "../chapter04/bin86.xml">
<!ENTITY c6-bin86 SYSTEM "../chapter06/bin86.xml">
<!ENTITY c6-bin86-inst SYSTEM "../chapter06/bin86-inst.xml">
<!ENTITY aa-bin86 SYSTEM "../appendixa/bin86.xml">
<!ENTITY aa-bin86-shortdesc SYSTEM "../appendixa/bin86-shortdesc.xml">
<!ENTITY aa-bin86-desc SYSTEM "../appendixa/bin86-desc.xml">
<!ENTITY aa-bin86-dep SYSTEM "../appendixa/bin86-dep.xml">
<!ENTITY aa-bin86-down SYSTEM "../appendixa/bin86-down.xml">
<!ENTITY bin86-version "0.16.3">
<!ENTITY bin86-depversion "0.16.0">
<!ENTITY bin86-contversion "0.16.3">
<!ENTITY bin86-size "142 KB">
<!ENTITY bin86-dir "bin86-&bin86-version;">
<!ENTITY bin86-package "bin86-&bin86-version;.tar.bz2">
<!ENTITY bin86-compsize "2 MB">
<!ENTITY bin86-time "0.1 SBU">

25
entities/grub.ent Normal file
View File

@ -0,0 +1,25 @@
<!ENTITY c4-grub SYSTEM "../chapter04/grub.xml">
<!ENTITY c6-grub SYSTEM "../chapter06/grub.xml">
<!ENTITY c6-grub-inst SYSTEM "../chapter06/grub-inst.xml">
<!ENTITY c8-grub SYSTEM "../chapter08/grub.xml">
<!ENTITY aa-grub SYSTEM "../appendixa/grub.xml">
<!ENTITY aa-grub-shortdesc SYSTEM "../appendixa/grub-shortdesc.xml">
<!ENTITY aa-grub-desc SYSTEM "../appendixa/grub-desc.xml">
<!ENTITY aa-grub-dep SYSTEM "../appendixa/grub-dep.xml">
<!ENTITY aa-grub-down SYSTEM "../appendixa/grub-down.xml">
<!ENTITY grub-version "0.93">
<!ENTITY grub-depversion "0.93">
<!ENTITY grub-contversion "0.93">
<!ENTITY grub-size "870 KB">
<!ENTITY grub-patch-version "0.93-gcc33-1">
<!ENTITY grub-patch-size "1 KB">
<!ENTITY grub-dir "grub-&grub-version;">
<!ENTITY grub-package "grub-&grub-version;.tar.bz2">
<!ENTITY grub-compsize "9 MB">
<!ENTITY grub-time "? SBU">

View File

@ -1,22 +0,0 @@
<!ENTITY c4-lilo SYSTEM "../chapter04/lilo.xml">
<!ENTITY c6-lilo SYSTEM "../chapter06/lilo.xml">
<!ENTITY c6-lilo-inst SYSTEM "../chapter06/lilo-inst.xml">
<!ENTITY c8-lilo SYSTEM "../chapter08/lilo.xml">
<!ENTITY aa-lilo SYSTEM "../appendixa/lilo.xml">
<!ENTITY aa-lilo-shortdesc SYSTEM "../appendixa/lilo-shortdesc.xml">
<!ENTITY aa-lilo-desc SYSTEM "../appendixa/lilo-desc.xml">
<!ENTITY aa-lilo-dep SYSTEM "../appendixa/lilo-dep.xml">
<!ENTITY aa-lilo-down SYSTEM "../appendixa/lilo-down.xml">
<!ENTITY lilo-version "22.2">
<!ENTITY lilo-depversion "22.1">
<!ENTITY lilo-contversion "22.2">
<!ENTITY lilo-size "343 KB">
<!ENTITY lilo-dir "lilo-&lilo-version;">
<!ENTITY lilo-package "lilo-&lilo-version;.tar.bz2">
<!ENTITY lilo-compsize "3 MB">
<!ENTITY lilo-time "0.1 SBU">

View File

@ -40,7 +40,6 @@
<!ENTITY % automake-entities SYSTEM "entities/automake.ent"> <!ENTITY % automake-entities SYSTEM "entities/automake.ent">
<!ENTITY % bash-entities SYSTEM "entities/bash.ent"> <!ENTITY % bash-entities SYSTEM "entities/bash.ent">
<!ENTITY % basic-net-entities SYSTEM "entities/basic-net.ent"> <!ENTITY % basic-net-entities SYSTEM "entities/basic-net.ent">
<!ENTITY % bin86-entities SYSTEM "entities/bin86.ent">
<!ENTITY % binutils-entities SYSTEM "entities/binutils.ent"> <!ENTITY % binutils-entities SYSTEM "entities/binutils.ent">
<!ENTITY % bison-entities SYSTEM "entities/bison.ent"> <!ENTITY % bison-entities SYSTEM "entities/bison.ent">
<!ENTITY % bootscripts-entities SYSTEM "entities/bootscripts.ent"> <!ENTITY % bootscripts-entities SYSTEM "entities/bootscripts.ent">
@ -61,6 +60,7 @@
<!ENTITY % glibc-entities SYSTEM "entities/glibc.ent"> <!ENTITY % glibc-entities SYSTEM "entities/glibc.ent">
<!ENTITY % grep-entities SYSTEM "entities/grep.ent"> <!ENTITY % grep-entities SYSTEM "entities/grep.ent">
<!ENTITY % groff-entities SYSTEM "entities/groff.ent"> <!ENTITY % groff-entities SYSTEM "entities/groff.ent">
<!ENTITY % grub-entities SYSTEM "entities/grub.ent">
<!ENTITY % gzip-entities SYSTEM "entities/gzip.ent"> <!ENTITY % gzip-entities SYSTEM "entities/gzip.ent">
<!ENTITY % inetutils-entities SYSTEM "entities/inetutils.ent"> <!ENTITY % inetutils-entities SYSTEM "entities/inetutils.ent">
<!ENTITY % kbd-entities SYSTEM "entities/kbd.ent"> <!ENTITY % kbd-entities SYSTEM "entities/kbd.ent">
@ -68,7 +68,6 @@
<!ENTITY % less-entities SYSTEM "entities/less.ent"> <!ENTITY % less-entities SYSTEM "entities/less.ent">
<!ENTITY % lfs-utils-entities SYSTEM "entities/lfs-utils.ent"> <!ENTITY % lfs-utils-entities SYSTEM "entities/lfs-utils.ent">
<!ENTITY % libtool-entities SYSTEM "entities/libtool.ent"> <!ENTITY % libtool-entities SYSTEM "entities/libtool.ent">
<!ENTITY % lilo-entities SYSTEM "entities/lilo.ent">
<!ENTITY % lockingglibc-entities SYSTEM "entities/lockingglibc.ent"> <!ENTITY % lockingglibc-entities SYSTEM "entities/lockingglibc.ent">
<!ENTITY % m4-entities SYSTEM "entities/m4.ent"> <!ENTITY % m4-entities SYSTEM "entities/m4.ent">
<!ENTITY % make-entities SYSTEM "entities/make.ent"> <!ENTITY % make-entities SYSTEM "entities/make.ent">
@ -112,7 +111,6 @@
%automake-entities; %automake-entities;
%bash-entities; %bash-entities;
%basic-net-entities; %basic-net-entities;
%bin86-entities;
%binutils-entities; %binutils-entities;
%bison-entities; %bison-entities;
%bootscripts-entities; %bootscripts-entities;
@ -133,6 +131,7 @@
%glibc-entities; %glibc-entities;
%grep-entities; %grep-entities;
%groff-entities; %groff-entities;
%grub-entities;
%gzip-entities; %gzip-entities;
%inetutils-entities; %inetutils-entities;
%kbd-entities; %kbd-entities;
@ -140,7 +139,6 @@
%less-entities; %less-entities;
%lfs-utils-entities; %lfs-utils-entities;
%libtool-entities; %libtool-entities;
%lilo-entities;
%lockingglibc-entities; %lockingglibc-entities;
%m4-entities; %m4-entities;
%make-entities; %make-entities;