Package: lilo
Version: 1:22.8-6.1
Severity: normal
Tags: patch

Attached is the diff for my lilo 1:22.8-6.2 NMU.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
diff -u lilo-22.8/debian/lilo.postinst lilo-22.8/debian/lilo.postinst
--- lilo-22.8/debian/lilo.postinst
+++ lilo-22.8/debian/lilo.postinst
@@ -64,7 +64,7 @@
 			sed -i -e '1i\# Automatically added by lilo postinst script\nlarge-memory\n' /etc/lilo.conf
 			echo "WARNING: Added large-memory option, please run lilo before you reboot"
 		fi
-	else
+	elif [ -e /vmlinuz -a -e /initrd ]; then
 		kernel_size=$(stat -L -c %s /vmlinuz)
 		initrd_size=$(stat -L -c %s /initrd.img)
 		size=$(($kernel_size+$initrd_size))
@@ -76,6 +76,12 @@
 			echo "WARNING: Please read /usr/share/doc/lilo/README.Debian"
 			echo 
 		fi
+	else
+		echo
+		echo "WARNING: kernel & initrd not found in the root directory (/vmlinuz & /initrd.img)"
+		echo "WARNING: Do NOT reboot or LILO may fail to boot if your kernel+initrd is large."
+		echo "WARNING: Please read /usr/share/doc/lilo/README.Debian"
+		echo
 	fi
 
 	db_get lilo/runme || true;
diff -u lilo-22.8/debian/changelog lilo-22.8/debian/changelog
--- lilo-22.8/debian/changelog
+++ lilo-22.8/debian/changelog
@@ -1,3 +1,10 @@
+lilo (1:22.8-6.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Also handle the case where the kernel/initrd symlinks are not in /
+
+ -- Paul Wise <[EMAIL PROTECTED]>  Sun, 02 Nov 2008 23:50:29 +0900
+
 lilo (1:22.8-6.1) unstable; urgency=low
 
   * Non-maintainer upload.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to