Bug#271269: grub: /etc/kernel-img.conf hooks should be added by package's post-install script

Martin-Ăric Racine "Martin-Ăric Racine" <q-funk@iki.fi>, 271269@bugs.debian.org
Sun, 12 Sep 2004 12:23:32 +0300


Package: grub
Severity: important

I have been wondering for a long time why the menu.lst gets automatically updated on a single host out of my whole 
i386 cluster.  The answer seems to be that update-grub won't automatically run whenever upgrading or removing 
kernel-images, because the following hooks are missing in /etc/kernel-img.conf:

# Update the GRUB menu
postrm_hook = /sbin/update-grub
postinst_hook = /sbin/update-grub

Given how Debian standardizes on GRUB starting with Sarge, it would be important that GRUB's installation scripts add
the above lines to /etc/kernel-img.conf automatically, upon installing or upgrading GRUB.  This would be easy to
implement and would save the end-user a lot of troubles, thus making Debian more user-friendly.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (101, 'testing'), (99, 'unstable')