update-grub is not run when kernel is installed or removed

Bug #808059 reported by Vasya Pupkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub (Ubuntu)
Invalid
High
Unassigned

Bug Description

Most Xen hosters require legacy grub for PyGrub to work. I have grub package installed instead of grub-pc. I can manually run update-grub and it does the job correctly. But when new kernel is installed, or when old is removed, update-grub is not called. I lost my configured VPS after removing old kernel and forgetting to manually run update-grub. It should be run automatically, like when grub-pc package is installed.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: grub 0.97-29ubuntu60
ProcVersionSignature: Ubuntu 2.6.32-316.31-ec2 2.6.32.38+drm33.16
Uname: Linux 2.6.32-316-ec2 x86_64
Architecture: amd64
Date: Sat Jul 9 21:15:43 2011
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: grub

Revision history for this message
Vasya Pupkin (shadowlmd) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

This is fixed in the grub package in Debian, so merging that into Ubuntu would solve this problem. However, the grub package has gone quite a long time without merge so this would be a lot of work - and bring with it the question of whether the grub package should automatically upgrade to grub-pc by default (which it now does in Debian).

I was unfamiliar with PyGrub. It appears to be a tool that parses the menu.lst and feeds the kernel information directly to the xen host for booting. That's certainly a use case that's difficult to address with grub2! It seems that PyGrub does have support for grub.cfg instead of menu.lst nowadays, but that it will take some time before all hosting providers are running it.

Changed in grub (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Vasya Pupkin (shadowlmd) wrote :

I just found a solution. Package grub-legacy-ec2 works perfect with ec2 kernel images.

Revision history for this message
dino99 (9d9) wrote :

Lucid is no more a supported version; and grub legacy upstream is also stopped, only receiving possible random fixes locally

Closed as per comments above

Changed in grub (Ubuntu):
status: Triaged → Invalid
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.