6.44. GRUB-1.98

The GRUB package contains the GRand Unified Bootloader.

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

6.44.1. Installation of GRUB

Prepare GRUB for compilation:

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

The --disable switches 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.44.2. Contents of GRUB

Installed programs: grub-bin2h, grub-editenv, grub-install, grub-mkconfig, grub-mkdevicemap, grub-mkelfimage, grub-mkimage, grub-mkisofs, grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-probe, grub-reboot, grub-script-check, grub-set-default, grub-setup
Installed directories: /usr/lib/grub, /etc/grub.d, /usr/share/grub

Short Descriptions

grub-bin2h

Converts a binary file to a C header

grub-editenv

A tool to edit the environment block

grub-install

Install GRUB on your drive

grub-mkconfig

Generate a grub config file

grub-mkdevicemap

Generate a device map file automatically

grub-mkelfimage

Make a bootable image of GRUB

grub-mkimage

Make a bootable image of GRUB

grub-mkisofs

Creates a bootable ISO image

grub-mkpasswd-pbkdf2

Generates an encrypted PBKDF2 password for use in the boot menu

grub-mkrelpath

Makes a system pathname relative to its root

grub-mkrescue

Make a bootable image of GRUB suitable for a floppy disk

grub-probe

Probe device information for a given path or device

grub-reboot

Sets the default boot entry for GRUB for the next boot only

grub-script-check

Checks GRUB configuration script for syntax errors

grub-set-default

Sets the default boot entry for GRUB

grub-setup

Set up images to boot from a device