编译linux内核 – “make install”要求LILO。 怎么办?

所以我按照这个指南编译我的定制内核 – http://library.linode.com/linode-platform/custom-instances/pv-grub-custom-compiled-kernel#sph_compile-and-install-the-kernel

到目前为止这么好,但我用一个make install打了一个小路障。

  AS arch/x86/boot/header.o LD arch/x86/boot/setup.elf OBJCOPY arch/x86/boot/setup.bin BUILD arch/x86/boot/bzImage Setup is 15328 bytes (padded to 15360 bytes). System is 5097 kB CRC c20c9369 Kernel: arch/x86/boot/bzImage is ready (#2) [root@li280-195 linux-3.3.3]# make -j3 modules make[1]: Nothing to be done for `all'. CHK include/linux/version.h CHK include/generated/utsrelease.h CALL scripts/checksyscalls.sh CC [M] drivers/scsi/scsi_wait_scan.o Building modules, stage 2. MODPOST 1 modules CC drivers/scsi/scsi_wait_scan.mod.o LD [M] drivers/scsi/scsi_wait_scan.ko [root@li280-195 linux-3.3.3]# make make[1]: Nothing to be done for `all'. CHK include/linux/version.h CHK include/generated/utsrelease.h CALL scripts/checksyscalls.sh CHK include/generated/compile.h CHK kernel/config_data.h Kernel: arch/x86/boot/bzImage is ready (#2) Building modules, stage 2. MODPOST 1 modules [root@li280-195 linux-3.3.3]# make install sh /root/build/linux-3.3.3/arch/x86/boot/install.sh 3.3.3 arch/x86/boot/bzImage \ System.map "/boot" Cannot find LILO. 

我明白, make install默认情况下寻找LILO ,我知道LILO是一个引导程序。 但我不想使用LILO ,而是只关心使用grub

我现在要做什么make install正确运行?

UPDATE

在我的/root/build/linux-3.3.3/arch/x86/install.sh文件中,最后10行是:

 if [ -x /sbin/lilo ]; then /sbin/lilo elif [ -x /etc/lilo/install ]; then /etc/lilo/install else sync echo "Cannot find LILO." fi 

所以不知何故,我需要编辑我的install.sh来使用grub 。 有什么build议么?

对于使用pv-grub的Linode,您可以忽略关于LILO的消息,因为LILO不在Linode上使用(也不能)。 内核映像已经复制到/boot/vmlinuz中。

默认情况下, make install更新LILO数据。 这样做是为了方便,因为LILO不知道文件系统,必须依靠块号来定位内核映像。

显然,你的安装脚本具有LILO作为要求。 为什么不简单地make ,然后将输出复制到/boot并用手拨弄grub