The Grub package contains the GRand Unified Bootloader.
Approximate build time: 0.2 SBU Required disk space: 10 MB |
Official download location for Grub (0.94):
ftp://alpha.gnu.org/gnu/grub/
For its installation Grub depends on: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, Sed.
This package is known to behave badly when you have changed its default optimization flags (including the -march and -mcpu options). Therefore, if you have defined any environment variables that override default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting them when building Grub.
First fix a compilation problem with GCC-3.3.2:
sed -i 's/2 long/2/' stage2/fsys_reiserfs.c |
Now prepare Grub for compilation:
./configure --prefix=/usr |
Compile the package:
make |
And install it:
make install mkdir /boot/grub cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub |
Replace i386-pc with whatever directory is appropriate for your hardware.
The i386-pc directory also contains a number of *stage1_5 files, different ones for different file systems. Have a look at the ones available and copy the appropriate ones to the /boot/grub directory. Most people will copy the e2fs_stage1_5 and/or reiserfs_stage1_5 files.
Installed programs: grub, grub-install, grub-md5-crypt, grub-terminfo and mbchk
grub is the GRand Unified Bootloader's command shell.
grub-install installs GRUB on the given device.
grub-md5-crypt encrypts a password in MD5 format.
grub-terminfo generates a terminfo command from a terminfo name. It can be used if you have an uncommon terminal.
mbchk checks the format of a multiboot kernel.