All of lore.kernel.org
 help / color / mirror / Atom feed
* grub.cfg and core.img getting out of sync
@ 2009-08-12 15:25 Colin Watson
  2009-08-13  6:54 ` Pavel Roskin
  2009-08-13 20:41 ` Robert Millan
  0 siblings, 2 replies; 5+ messages in thread
From: Colin Watson @ 2009-08-12 15:25 UTC (permalink / raw)
  To: grub-devel

I'm having persistent problems with grub.cfg and core.img getting out of
sync. The usual pattern is:

  * Some shiny new feature appears in core.img
  * We extend grub-mkconfig to use it
  * User runs update-grub but not grub-install (historically a perfectly
    sane thing to do, and indeed basically standard practice)
  * grub either falls over at boot or does something odd

This just bit me again today, and if it bites me it's going to bite the
users of the packages I upload too.

Is there any way we can do better? One thing I was thinking of is that
Ubuntu's carried a patch to GRUB Legacy for some time that stores the
package version at the point when grub-install was last run in
/boot/grub/installed-version. If we did something like that, then
grub-mkconfig could carry a bit of conditional code that says "only use
this feature if the installed version of GRUB is at least <foo>".
grub-mkconfig would end up carrying a bit of bloat, but at least the
bloat is in /usr, and I'm assuming that at this point things are stable
enough that we won't be talking about *too* many changes.

What do people think about this general approach?

Thanks,

-- 
Colin Watson                                       [cjwatson@ubuntu.com]



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-13 20:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-12 15:25 grub.cfg and core.img getting out of sync Colin Watson
2009-08-13  6:54 ` Pavel Roskin
2009-08-13  8:22   ` Colin Watson
2009-08-13 20:44     ` Robert Millan
2009-08-13 20:41 ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.