Package: memtest86+
Version: 1.65-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.

Patch attached.

-- 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+-1.70/debian/postinst memtest86+-1.70.new/debian/postinst
--- memtest86+-1.70/debian/postinst     2008-01-10 13:56:49.000000000 +0100
+++ memtest86+-1.70.new/debian/postinst 2008-01-10 13:52:06.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+-1.70/debian/postrm memtest86+-1.70.new/debian/postrm
--- memtest86+-1.70/debian/postrm       2008-01-10 13:56:49.000000000 +0100
+++ memtest86+-1.70.new/debian/postrm   2008-01-10 13:52:37.000000000 +0100
@@ -1,8 +1,8 @@
 #!/bin/bash
 set -e
 
-if which update-grub > /dev/null ; then
-    update-grub
+if which update-grub2 > /dev/null ; then
+    update-grub2
 fi
 
 #DEBHELPER#

Reply via email to