%general-entities; %patches-entities; ]> GRUB-&grub-version; GRUB <para>The GRUB package contains the GRand Unified Bootloader.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem><seg>0.2 SBU</seg><seg>10.0 MB</seg></seglistitem> </segmentedlist> <segmentedlist> <segtitle>&dependencies;</segtitle> <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of GRUB This package is known to have issues when its default optimization flags (including the -march and -mcpu options) are changed. If any environment variables that override default optimizations have been defined, such as CFLAGS and CXXFLAGS, unset them when building GRUB. Prepare GRUB for compilation: ./configure --prefix=/usr Compile the package: make To test the results, issue: sed -i '/ufs2/d' stage2/size_test && make check. The UFS test is known to fail due to a compiler issue. The failure prevents the rest of the tests from being run, so the sed command is used to avoid the failure. The UFS test failure can be ignored unless you plan to boot from a UFS partition. The partitions are normally only used by Sun workstations. Install the package: make install mkdir /boot/grub cp /usr/lib/grub/i386-pc/stage{1,2} /boot/grub Replace i386-pc with whatever directory is appropriate for the hardware in use. The i386-pc directory contains a number of *stage1_5 files, different ones for different file systems. Review the files available and copy the appropriate ones to the /boot/grub directory. Most users will copy the e2fs_stage1_5 and/or reiserfs_stage1_5 files. Contents of GRUB Installed programs grub, grub-install, grub-md5-crypt, grub-terminfo, and mbchk Short Descriptions grub The Grand Unified Bootloader's command shell grub grub-install Installs GRUB on the given device grub-install grub-md5-crypt Encrypts a password in MD5 format grub-md5-crypt grub-terminfo Generates a terminfo command from a terminfo name; it can be employed if an unknown terminal is being used grub-terminfo mbchk Checks the format of a multi-boot kernel mbchk