Package: memtest86 Version: 3.2-1.1 Severity: normal Tags: patch For menu.lst, we delivered the promise that this file wouldn't be automaticaly updated unless /etc/kernel-img.conf was configured to do so. Assuming otherwise might be irritating to some users (for example see #459247).
In order to allow packages to use auto-update feature for GRUB 2, but without running the risk of overwriting possibly-customized menu.lst from GRUB Legacy, an `update-grub2' symlink is being provided. Please, use that in your calls to garantee that it is GRUB 2's grub.cfg that is being updated, not menu.lst. The patch in addition adds the corresponding postrm script to undo what postinst might have done when removing the package. -- System Information: Debian Release: lenny/sid APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-5-amd64 Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8) -- no debconf information
diff -Nur memtest86-3.4/debian/postinst memtest86-3.4.new/debian/postinst --- memtest86-3.4/debian/postinst 2008-01-10 13:56:49.000000000 +0100 +++ memtest86-3.4.new/debian/postinst 2008-01-10 13:54:43.000000000 +0100 @@ -17,8 +17,8 @@ fi fi -if test -e /boot/grub/grub.cfg && which update-grub > /dev/null ; then - update-grub +if test -e /boot/grub/grub.cfg && which update-grub2 > /dev/null ; then + update-grub2 fi #DEBHELPER# diff -Nur memtest86-3.4/debian/postrm memtest86-3.4.new/debian/postrm --- memtest86-3.4/debian/postrm 1970-01-01 01:00:00.000000000 +0100 +++ memtest86-3.4.new/debian/postrm 2008-01-10 13:55:33.000000000 +0100 @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if which update-grub2 > /dev/null ; then + update-grub2 +fi + +#DEBHELPER#