summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-09-12 16:54:36 +0200
committermaximilian attems <maks@debian.org>2006-09-12 16:54:36 +0200
commitd4105f86b31e2c0fd35d060982a3f50e9eb9baf1 (patch)
tree748d0bdba852079e09ed2084ee788143076a5cd9 /update-initramfs
parent773f7f37a7a28977409e1369ae284d4ccc03812a (diff)
downloadinitramfs-tools-d4105f86b31e2c0fd35d060982a3f50e9eb9baf1.tar.gz
initramfs-tools-d4105f86b31e2c0fd35d060982a3f50e9eb9baf1.zip
- another run_lilo improvement
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" ] \