Updating Kernel modified Grub doesn't respect customised entries

Bug #59895 reported by Martin Andersen
4
Affects Status Importance Assigned to Milestone
grub (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: grub

I set Windows as the first entry in the Grub menu.lst, but whenever the kernel is upgraded, everything above the Other Operation Systems divider is removed.
Ubuntu should not assume it is the primary operating system and remove customised entries, whetehr it is for Windows or some other ditribution.

Revision history for this message
Michael Chesterton (chesty) wrote :

I think the problem is everything between the lines

### BEGIN AUTOMAGIC KERNELS LIST

and

### END DEBIAN AUTOMAGIC KERNELS LIST

gets auto regenerated when a new kernel is installed, and update-grub is run.

see bug 21412 and bug 2646.

What happens if you copy the windows entry above ### BEGIN AUTOMAGIC KERNELS LIST and run sudo update-grub ?

Changed in grub:
status: Unconfirmed → Needs Info
Revision history for this message
Martin Andersen (msandersen) wrote :

Seems to be a duplicate of bug #21412

Revision history for this message
Martin Andersen (msandersen) wrote :

Confirm that grub-update doesn't affect anything above
### BEGIN AUTOMAGIC KERNELS LIST
but that is not ideal, being before all the instructions and examples etc. In bug #21412 it was suggested to have an include for the autogenerated output or something similar, or even moving to Grub2 (don't know if it's stable yet or its capability; Grub1 itself is no longer being developed).
As a workaround for me it's fine, provided its location before all other options doesn't affect it. Ideally it should be smart enough to detect Ubuntu kernels and only modify its entries. Even if you have a distinct Ubuntu section like the automagic one, but more specific.
It is able to leave my Splashimage line alone in Dapper, which it didn't previously, so it should be able to do the same for non-Ubuntu entries.

All this would be moot if there were a proper Graphical Grub editor, which is a separate issue.

Revision history for this message
Michael Chesterton (chesty) wrote :

I've marked it as a dup of bug 21412. You might want to add a comment to that bug?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for grub (Ubuntu) because there has been no activity for 60 days.]

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.