From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: grub.cfg and core.img getting out of sync
Date: Thu, 13 Aug 2009 02:54:29 -0400 [thread overview]
Message-ID: <1250146469.2352.46.camel@ct> (raw)
In-Reply-To: <20090812152508.GZ11691@riva.ucam.org>
On Wed, 2009-08-12 at 16:25 +0100, Colin Watson wrote:
> 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
The assumption is that grub.cfg should be able to deal with it. That's
why it sets root before searching.
> This just bit me again today, and if it bites me it's going to bite the
> users of the packages I upload too.
By our today's standards, it's a bug, so it should be reported in a
detailed way.
> 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?
There is already a version hardcoded into the uncompressed part of
core.img. See kern/i386/pc/startup.S. Unfortunately, there is no
policy when the version should be updated.
But I'm fine with a separate file in /boot/grub if we decide that the
existing version in core.img cannot be used for that and we cannot keep
grub.cfg backward compatible.
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2009-08-13 6:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-12 15:25 grub.cfg and core.img getting out of sync Colin Watson
2009-08-13 6:54 ` Pavel Roskin [this message]
2009-08-13 8:22 ` Colin Watson
2009-08-13 20:44 ` Robert Millan
2009-08-13 20:41 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1250146469.2352.46.camel@ct \
--to=proski@gnu.org \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.