Nevermind about the other files; there's enough info in the term log to figure this out.
Setting up linux-image-3.2.0-18-generic (3.2.0-18.29) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Running postinst 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-3.2.0-18-generic
Found kernel: /boot/vmlinuz-2.6.32-38-server
Found kernel: /boot/vmlinuz-2.6.32-34-server
Found kernel: /boot/vmlinuz-2.6.32-33-server
Found kernel: /boot/vmlinuz-2.6.32-28-server
Found kernel: /boot/vmlinuz-2.6.32-27-server
Found kernel: /boot/vmlinuz-2.6.32-23-server
Found kernel: /boot/vmlinuz-2.6.32-21-server
Found kernel: /boot/vmlinuz-2.6.31-16-server
Found kernel: /boot/vmlinuz-2.6.28-17-server
Found kernel: /boot/vmlinuz-2.6.27-9-server
Found kernel: /boot/vmlinuz-2.6.24-19-server
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-18-generic /boot/vmlinuz-3.2.0-18-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-18-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-18-generic /boot/vmlinuz-3.2.0-18-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-18-generic /boot/vmlinuz-3.2.0-18-generic
[...]
Setting up plymouth-theme-ubuntu-text (0.8.2-2ubuntu28) ...
update-initramfs: deferring update (trigger activated)
[...]
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-18-generic
[...]
Setting up grub (0.97-29ubuntu65) ...
Removing update-grub hooks from /etc/kernel-img.conf in favour of
/etc/kernel/ hooks.
[...]
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-18-generic
[...]
So the grub update knows to take care of replacing the /etc/kernel-img.conf line with a proper /etc/kernel hook, but then nothing ensures this is called after the kernel upgrade. The kernel postinst calls update-grub too early, and it's not called again after upgrade.
We should probably just have grub call update-grub in the postinst when the upgrade handling is triggered.
Nevermind about the other files; there's enough info in the term log to figure this out.
Setting up linux-image- 3.2.0-18- generic (3.2.0-18.29) ... 3.2.0-18- generic 2.6.32- 38-server 2.6.32- 34-server 2.6.32- 33-server 2.6.32- 28-server 2.6.32- 27-server 2.6.32- 23-server 2.6.32- 21-server 2.6.31- 16-server 2.6.28- 17-server 2.6.27- 9-server 2.6.24- 19-server +.bin grub/menu. lst with new version
Running depmod.
update-initramfs: deferring update (hook will be called later)
Running postinst 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-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Replacing config file /var/run/
Updating /boot/grub/menu.lst ... done
Examining /etc/kernel/ postinst. d. postinst. d/initramfs- tools 3.2.0-18-generic /boot/vmlinuz- 3.2.0-18- generic img-3.2. 0-18-generic postinst. d/pm-utils 3.2.0-18-generic /boot/vmlinuz- 3.2.0-18- generic postinst. d/update- notifier 3.2.0-18-generic /boot/vmlinuz- 3.2.0-18- generic theme-ubuntu- text (0.8.2-2ubuntu28) ... img-3.2. 0-18-generic img.conf in favour of img-3.2. 0-18-generic
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
[...]
Setting up plymouth-
update-initramfs: deferring update (trigger activated)
[...]
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
[...]
Setting up grub (0.97-29ubuntu65) ...
Removing update-grub hooks from /etc/kernel-
/etc/kernel/ hooks.
[...]
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
[...]
So the grub update knows to take care of replacing the /etc/kernel- img.conf line with a proper /etc/kernel hook, but then nothing ensures this is called after the kernel upgrade. The kernel postinst calls update-grub too early, and it's not called again after upgrade.
We should probably just have grub call update-grub in the postinst when the upgrade handling is triggered.