Package: memtest86+
Version: 4.00-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu maverick ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following:
* Only run update-grub in the postrm on remove/purge.
We thought you might be interested in doing the same.
-- System Information:
Debian Release: squeeze/sid
APT prefers lucid
APT policy: (500, 'lucid')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-21-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/postrm'
--- debian/postrm 2009-03-26 11:45:00 +0000
+++ debian/postrm 2010-06-27 16:39:42 +0000
@@ -1,7 +1,8 @@
#!/bin/sh
set -e
-if test -e /boot/grub/grub.cfg && which update-grub2 > /dev/null ; then
+if ([ "$1" = remove ] || [ "$1" = purge ]) && \
+ test -e /boot/grub/grub.cfg && which update-grub2 > /dev/null ; then
update-grub2
fi