From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Failure to embed core.img is fatal now
Date: Thu, 26 Jun 2008 10:48:13 -0400 [thread overview]
Message-ID: <1214491693.30044.5.camel@dv> (raw)
In-Reply-To: <20080626142010.GD7511@thorin>
On Thu, 2008-06-26 at 16:20 +0200, Robert Millan wrote:
> On Wed, Jun 25, 2008 at 05:48:34PM -0400, Pavel Roskin wrote:
> >
> > I'm also surprised that the code alternately uses dir and
> > DEFAULT_DIRECTORY to calculate core_path. core_path is calculated 3
> > times in one function! If dir and DEFAULT_DIRECTORY are used correctly,
> > I suggest that two different variables are used for what is now called
> > core_path.
>
> Might be a remnant from when grub-setup mangled prefix? I recently moved
> this off grub-setup and into grub-install/grub-mkimage so that core.img had
> the right prefix regardless on whether it was being loaded directly by a
> multiboot loader or via grub-setup.
No, it's all old code, traced to years 2003-2004. But it needs to be
handled better because we need to move things around at this point. If
nothing else, it will make the code more readable and less prone to
breakages.
> Or maybe I'm completely out of context here. In any case, please take into
> account that modifications done to core.img by grub-setup have no effect if
> core.img is being loaded directly.
I know. That's why they are only written to disk if core.img is not
embedded.
Anyway, I think there is a much simpler approach. Changes to the memory
image of core.img should be applied after the image is tested for
readability. Until then, they should be in temporary variables.
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2008-06-26 14:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 21:48 Failure to embed core.img is fatal now Pavel Roskin
2008-06-26 1:02 ` Javier Martín
2008-06-26 1:32 ` Pavel Roskin
2008-06-26 1:44 ` Pavel Roskin
2008-06-26 14:20 ` Robert Millan
2008-06-26 14:48 ` Pavel Roskin [this message]
2008-06-26 16:54 ` Pavel Roskin
2008-06-29 11:27 ` Robert Millan
2008-06-29 16:20 ` Pavel Roskin
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=1214491693.30044.5.camel@dv \
--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.