summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'update-initramfs')
-rwxr-xr-xupdate-initramfs5
1 files changed, 1 insertions, 4 deletions
diff --git a/update-initramfs b/update-initramfs
index fa6c837..d1b7026 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -85,9 +85,6 @@ generate_initramfs()
# lilo call
run_lilo()
{
- if [ ! -x /sbin/lilo ]; then
- return 0
- fi
lilo -t > /dev/null
if [ $? -eq 0 ]; then
lilo
@@ -99,7 +96,7 @@ run_lilo()
run_bootloader()
{
if [ -x /sbin/grub ] || [ -e /boot/grub/menu.lst ]; then
- if [ -e /etc/lilo.conf ]; then
+ if [ -e /etc/lilo.conf ] && [ -x /sbin/lilo ]; then
[ -r "${KPKGCONF}" ] && \
do_b=$(awk '/bootloader/{print $3}' "${KPKGCONF}")
if [ "${do_b}" = "yes" ] || [ "${do_b}" = "Yes" ] \