link to /sbin/update-grub missing, problem with update of linux-restricted-modules-2.6.28-13-generic

Bug #385478 reported by Wolfgang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: grub2

Description: Ubuntu 9.04
Release: 9.04

after upgrade to grub2 the (normal security) update of the kernel-packages in jaunty failed today with the following error message:

...
update-initramfs: Generating /boot/initrd.img-2.6.28-13-generic
The provided postinst hook script [/sbin/update-grub] could not be run.
...

It seems grub2 does not provide a symbolic link /sbin/update-grub, however there seems to be a link in /usr/sbin/update-grub. Info: As recommended, I purged the package "grub", after successful grub2 installation!

Due to backward compatibility reasons, grub2 should also provide a symbolic link /sbin/update-grub

Revision history for this message
Wolfgang (wt-lists) wrote :

Workaround:

set symbolic link:
# ln -s /usr/sbin/update-grub /sbin/update-grub
then run upgrade again:
# aptitude -y dist-upgrade

Revision history for this message
Felix Zielcke (fzielcke) wrote :

grub-legacy provides since version 0.97-14 a wrapper in /sbin/update-grub which tells you that /sbin/update-grub is deprecated and /usr/sbin/update-grub should be used.
But it doestn't mention unfortunately that you need to change /etc/kernel-img.conf
In Debian's grub2 1.96+20090611-1 we just run sed over it and change it in the postinst.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.