[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#511514: initramfs-tools: unconditionally runs lilo when both lilo and grub2 are installed



Package: initramfs-tools
Version: 0.92o

This will keep lilo from overwriting the mbr when do_bootloader = no, at least.

diff -ur initramfs-tools-0.92o.orig/update-initramfs initramfs-tools-0.92o/update-initramfs
--- initramfs-tools-0.92o.orig/update-initramfs	2008-09-15 05:48:38.000000000 -0400
+++ initramfs-tools-0.92o/update-initramfs	2009-01-11 14:04:07.703082128 -0500
@@ -233,7 +233,7 @@
 {
 	# if both lilo and grub around, figure out if lilo needs to be run
 	if [ -x /sbin/grub ] || [ -e /boot/grub/menu.lst ] \
-	|| [ -x /usr/sbin/grub ]; then
+	|| [ -x /usr/sbin/grub ] || [ -e /boot/grub/grub.cfg ]; then
 		if [ -e /etc/lilo.conf ] && [ -x /sbin/lilo ]; then
 			[ -r "${KPKGCONF}" ] && \
 			do_b=$(awk  '/^do_bootloader/{print $3}' "${KPKGCONF}")



Reply to: