summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'update-initramfs')
-rw-r--r--update-initramfs16
1 files changed, 16 insertions, 0 deletions
diff --git a/update-initramfs b/update-initramfs
index 2e39ed0..08a2f3a 100644
--- a/update-initramfs
+++ b/update-initramfs
@@ -67,6 +67,20 @@ generate_initramfs()
set_sha1
}
+# only run lilo if no grub is around
+run_bootloader()
+{
+ if [ -x /sbin/grub -o -e /boot/grub/menu.lst ]; then
+ return 0
+ fi
+ if [ -e /etc/lilo.conf ]; then
+ lilo -t > /dev/null
+ if [ $? -eq 0 ]; then
+ lilo
+ fi
+ fi
+}
+
compare_sha1()
{
sha1sum "${initramfs}" | diff "${STATEDIR}/${version}" - >/dev/null 2>&1
@@ -199,6 +213,8 @@ update()
generate_initramfs
+ run_bootloader
+
}
delete()