From: "Vesa Jääskeläinen" <chaac@nic.fi>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [RFC PATCH] Sector 2 of non-embedded core.img: write early or patch later?
Date: Sat, 28 Jun 2008 12:09:26 +0300 [thread overview]
Message-ID: <4865FFC6.8070804@nic.fi> (raw)
In-Reply-To: <1214601899.9513.58.camel@dv>
Pavel Roskin wrote:
> Hello!
>
> We have a serious problem with installing onto partitions (e.g.
> grub-install /dev/sda1) and drives with geometry that doesn't leave
> enough space for core.img to be embedded before the first partition.
> While it's not a desirable configuration, it should work, but it
> doesn't.
>
> Either we should write sector 2 before the core.img is checked for
> readability or we should delay patching sector 2 in memory until the
> verification is done. Otherwise, the verification will fail.
>
> Delayed patching changes nothing in terms of I/O but needs a longer
> patch and won't scale well if we want to put more information into
> sector 2, as we'll need to cache more data.
Why not make a structure that holds every modification information that
needs to be done ("configuration block"). And then you provide core.img
and variable filled with configuration information to patch function
that modifies core.img properly. This way you only need to write this once.
With this you can either modify compare or patch two copies of the
images with same configuration information.
next prev parent reply other threads:[~2008-06-28 9:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-27 21:24 [RFC PATCH] Sector 2 of non-embedded core.img: write early or patch later? Pavel Roskin
2008-06-28 4:46 ` Bean
2008-06-28 4:58 ` Bean
2008-06-30 22:43 ` Pavel Roskin
2008-06-28 9:09 ` Vesa Jääskeläinen [this message]
2008-06-29 11:29 ` Robert Millan
2008-06-29 13:23 ` Vesa Jääskeläinen
2008-06-29 17:38 ` Robert Millan
2008-06-29 17:44 ` Vesa Jääskeläinen
2008-06-29 21:10 ` 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=4865FFC6.8070804@nic.fi \
--to=chaac@nic.fi \
--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.