Wednesday, 26 February 2014

How to compile your own Grub


How to get and build/compile your own GRUB?

First, get the GRUB from the GNU site:
ftp://ftp.gnu.org/gnu/grub/grub-2.00.tar.gz

Then copy to your linux machine and unzip it:

  1. zcat grub-2.00.tar.gz | tar -xvf -cd grub-2.00/
  2. cd grub-2.00/
  3. ./configure
    • Here will require to install those missing package
    • FEDORA: sudo yum install <pkg> 
      • i.e. bison, flex and more
  4. After configure passes all criteria
  5. make install

How to get a GRUB.efi for UEFI Shell launch

  1. sudo yum install grub-efi
  2. Copy grub file from: /boot/efi/EFI/redhat/grub.efi


No comments:

Post a Comment