From: Gabriel C Date: Tue, 31 Jul 2007 07:39:06 +0000 (-0700) Subject: broken lilo check on make install X-Git-Tag: v2.6.23-rc2~62 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=47f82189b185bf4b0de4ebce237850e8d3b1d0b6;p=~shefty%2Frdma-dev.git broken lilo check on make install On make install I get the this error: ... sh /work/crazy/linux-git/linux-2.6/arch/i386/boot/install.sh 2.6.22-g4eb6bf6b arch/i386/boot/bzImage System.map "/boot" /work/crazy/linux-git/linux-2.6/arch/i386/boot/install.sh: line 54: /etc/lilo/install: No such file or directory make[1]: *** [install] Error 127 ... I don't use and don't have lilo installed on this system. The attached patch fixes the problem for me. Signed-off-by: Gabriel Craciunescu Acked-by: H. Peter Anvin Cc: Sam Ravnborg Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/boot/install.sh b/arch/i386/boot/install.sh index 5e44c736eea..88d77761d01 100644 --- a/arch/i386/boot/install.sh +++ b/arch/i386/boot/install.sh @@ -51,4 +51,11 @@ fi cat $2 > $4/vmlinuz cp $3 $4/System.map -if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi +if [ -x /sbin/lilo ]; then + /sbin/lilo +elif [ -x /etc/lilo/install ]; then + /etc/lilo/install +else + sync + echo "Cannot find LILO." +fi