6.43. GRUB-1.97.2

The GRUB package contains the GRand Unified Bootloader.

Approximate build time: 0.4 SBU
Required disk space: 27.6 MB

6.43.1. Installation of GRUB

Prepare GRUB for compilation:

mkdir build
cd build
../configure --prefix=/usr           \
             --sysconfdir=/etc       \
             --disable-grub-emu      \
             --disable-grub-emu-usb  \
             --disable-grub-fstest   \
             --disable-efiemu

Using a separate build directory keeps the 2400 generated files out of the main directory and is recommended by the developers. The --disable switches just minimize what is built by disabling features and testing programs not really needed for LFS.

Compile the package:

make

This package does not come with a test suite.

Install the package:

make install

Using GRUB to make your LFS system bootable will be discussed in Section 8.4, “Using GRUB to Set Up the Boot Process”.

6.43.2. Contents of GRUB

Installed programs: grub-editenv, grub-mkelfimage, grub-mkfont, grub-mkimage, grub-mkrescue, grub-dumpbios, grub-install, grub-mkconfig, grub-mkdevicemap, grub-probe, grub-setup
Installed directories: /usr/lib/grub, /etc/grub.d, /usr/share/grub, /usr/inclue/grub

Short Descriptions

grub-editenv

A tool to edit the environment block

grub-mkelfimage

Make a bootable image of GRUB

grub-mkfont

Update fonts for GRUB use

grub-mkimage

Make a bootable image of GRUB

grub-mkrescue

Make a bootable image of GRUB suitable for a floppy disk

grub-dumpbios

Create vbios and int10 dump

grub-install

Install GRUB on your drive

grub-mkconfig

Generate a grub config file

grub-mkdevicemap

Generate a device map file automatically

grub-probe

Probe device information for a given path or device

grub-setup

Set up images to boot from a device