grub2编译安装

http://www.nenew.net/grub2-compile-and-install.html

in this blog ,the blogger compiled and installed the grub2.the cmd is as follows:

编译安装一次grub2,发现./configure会报错,很纠结。于是乎看.configure –help,知道可以添加  –disable-werror选项来把warning不归结到error中,然后编译成功。

记录下流程

  1. mkdir grub 

  2. cd grub 

  3. wget ftp://ftp.gnu.org/gnu/grub/grub-1.99.tar.gz 

  4. tar xzvf grub-1.99.tar.gz 

  5. cd grub-1.99 

  6. ./configure --prefix=/usr --sysconfdir=/etc --disable-werror 

  7. make 

  8. make install 


原文地址:https://www.cnblogs.com/liq07lzucn/p/4471692.html