Package: grub2 Severity: wishlist please consider using dpkg triggers to update the menu.lst file, rather than do it for each kernel image install or remove.
a disclaimer. I'm not using grub2 on this machine at present. I was going to file the following against grub 1 when I saw the disclaimer. I checked the changelog and bts for mention of triggers, and checked the source for a triggers file (which I couldn't find). From when I did use grub2 (I had to back out at the time) I believe this is relevant to grub2. There is a chance I am wrong in which case I apologise. However, if I'm not, hopefully this will then avoid situations like the following: 21:15:23# aptitude (Reading database ... 353294 files and directories currently installed.) Removing kqemu-modules-2.6.22-3-686 ... Removing linux-image-2.6.18-4-686 ... Running postrm hook script /sbin/update-grub. Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz Found kernel: /boot/vmlinuz.old Found kernel: /boot/vmlinuz-2.6.24-1-686 Found kernel: /boot/vmlinuz-2.6.23-rc1 Found kernel: /boot/vmlinuz-2.6.22.old Found kernel: /boot/vmlinuz-2.6.22-3-686 Found kernel: /boot/vmlinuz-2.6.22-2-686 Found kernel: /boot/vmlinuz-2.6.22-1-686 Found kernel: /boot/vmlinuz-2.6.22 Found kernel: /boot/vmlinuz-2.6.21-2-686 Found kernel: /boot/vmlinuz-2.6.21-1-686 Updating /boot/grub/menu.lst ... done Removing linux-image-2.6.21-1-686 ... Running postrm hook script /sbin/update-grub. Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz Found kernel: /boot/vmlinuz.old Found kernel: /boot/vmlinuz-2.6.24-1-686 Found kernel: /boot/vmlinuz-2.6.23-rc1 Found kernel: /boot/vmlinuz-2.6.22.old Found kernel: /boot/vmlinuz-2.6.22-3-686 Found kernel: /boot/vmlinuz-2.6.22-2-686 Found kernel: /boot/vmlinuz-2.6.22-1-686 Found kernel: /boot/vmlinuz-2.6.22 Found kernel: /boot/vmlinuz-2.6.21-2-686 Updating /boot/grub/menu.lst ... done Removing linux-image-2.6.21-2-686 ... Running postrm hook script /sbin/update-grub. Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz Found kernel: /boot/vmlinuz.old Found kernel: /boot/vmlinuz-2.6.24-1-686 Found kernel: /boot/vmlinuz-2.6.23-rc1 Found kernel: /boot/vmlinuz-2.6.22.old Found kernel: /boot/vmlinuz-2.6.22-3-686 Found kernel: /boot/vmlinuz-2.6.22-2-686 Found kernel: /boot/vmlinuz-2.6.22-1-686 Found kernel: /boot/vmlinuz-2.6.22 Updating /boot/grub/menu.lst ... done Removing linux-image-2.6.22-1-686 ... Running postrm hook script /sbin/update-grub. Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz Found kernel: /boot/vmlinuz.old Found kernel: /boot/vmlinuz-2.6.24-1-686 Found kernel: /boot/vmlinuz-2.6.23-rc1 Found kernel: /boot/vmlinuz-2.6.22.old Found kernel: /boot/vmlinuz-2.6.22-3-686 Found kernel: /boot/vmlinuz-2.6.22-2-686 Found kernel: /boot/vmlinuz-2.6.22 Updating /boot/grub/menu.lst ... done Removing linux-image-2.6.22-2-686 ... Running postrm hook script /sbin/update-grub. Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz Found kernel: /boot/vmlinuz.old Found kernel: /boot/vmlinuz-2.6.24-1-686 Found kernel: /boot/vmlinuz-2.6.23-rc1 Found kernel: /boot/vmlinuz-2.6.22.old Found kernel: /boot/vmlinuz-2.6.22-3-686 Found kernel: /boot/vmlinuz-2.6.22 Updating /boot/grub/menu.lst ... done Removing linux-image-2.6.22-3-686 ... Running postrm hook script /sbin/update-grub. Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz Found kernel: /boot/vmlinuz.old Found kernel: /boot/vmlinuz-2.6.24-1-686 Found kernel: /boot/vmlinuz-2.6.23-rc1 Found kernel: /boot/vmlinuz-2.6.22.old Found kernel: /boot/vmlinuz-2.6.22 Updating /boot/grub/menu.lst ... done The link /vmlinuz.old is a damaged link Removing symbolic link vmlinuz.old you may need to re-run your boot loader The link /initrd.img.old is a damaged link Removing symbolic link initrd.img.old you may need to re-run your boot loader Removing rt2570-modules-2.6.18-2-686 ... Removing rt2570-modules-2.6.18-3-686 ... Removing rt2570-modules-2.6.22-3-686 ... Press return to continue. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (990, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]