update-grub is not run when kernel is installed or removed
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
ProcVersionSign
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
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.