[Hardy 8.04 alpha] update-grub does not write anything
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bug Description
Binary package hint: grub
As of grub package version 0.97-29ubuntu10 (maybe already one version earlier) the update-grub script does not write any of the detected kernels to the menu.lst file.
Steps to reproduce:
- Back up your menu.lst file.
- Remove your menu.lst file.
- Run sudo update-grub.
- Note the following output (or something simliar):
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Updating /boot/grub/menu.lst ... done
- Review the newly generated menu.lst file.
- Note that there are no elements in the "AUTOMAGIC KERNEL LIST".
( - Replace the new menu.lst with your backup copy, or you won't be able to boot next time! )
This is a very critical bug because it effectively disables the installation of new kernels through a regular upgrade process!
I am using Hardy 2.6.24-5-generic (because I updated the menu.lst entry manually in order to boot into -5).
I have no idea what kind of information you would need on a report like this, so I am attaching the currently working menu.lst and the one generated by update-grub.
Let me know if you need anything else.
See also bug #186246 which reports that menu.lst in recent Ubuntu i386 desktops installed from daily builds of LiveCD do not have the necessary kernel boot information, just like the "empty" menu.lst file attached to this bug. Bug #186246 may be another consequence of this faulty update-grub command.