From: Jean-Christophe Haessig <jean-christophe.haessig@dianosis.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Putting core.img anywhere
Date: Wed, 23 Jul 2008 11:40:27 +0200 [thread overview]
Message-ID: <1216806027.3133.23.camel@sycorax> (raw)
In-Reply-To: <20080722214749.GE15111@thorin>
[-- Attachment #1: Type: text/plain, Size: 1580 bytes --]
Le mardi 22 juillet 2008 à 23:47 +0200, Robert Millan a écrit :
>
> > As I stated earlier my disks are not DOS-partitioned (e.g.
> > pvcreate /dev/hda). I didn't want to have one useless level
>
> Turns out it wasn't as useless as you thought :-)
heh :)
> > since LVM already does the job (better).
>
> LVM does the job of managing storage partitions, but not the "job" of reserving
> a gap for GRUB to use.
LVM leaves some sectors at the beginning of the disk. This can be chosen
at pvcreate time, AFAIK one can leave between 1 and 4 sectors before the
LVM header. Which is sufficient since LILO does fine with such a setup,
after all.
> Furthermore, the scheme you propose looks overly complicated [1]
Complicated ?? You must be kidding me ! A ten-year old would understand
it. It is way more complicated to include filesystem support in a
bootloader.
In fact I thought about this scheme because one of the features of GRUB
(compared to LILO) was to work without having to reinstall each time a
kernel is altered. I included the random number chain scheme to keep the
thing woking even if the core.img file was moved by accident. Random
numbers were just here to minimize the risk of using a wrong block that
just happens to have the correct value.
But using a simple blocklist (just as LILO does) to locate the core.img
would also work (and is quite less complicated), just a little less
robust. I wonder why this isn't alredady possible, BTW.
> maybe […] switching to Coreboot [3]?
Coreboot is, indeed, interesting.
JC
[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-07-23 10:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-19 17:24 Putting core.img anywhere Jean-Christophe Haessig
2008-07-20 15:06 ` Javier Martín
2008-07-21 9:13 ` Jean-Christophe Haessig
2008-07-21 10:55 ` Javier Martín
2008-07-22 21:47 ` Robert Millan
2008-07-23 9:40 ` Jean-Christophe Haessig [this message]
2008-07-25 20:36 ` 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=1216806027.3133.23.camel@sycorax \
--to=jean-christophe.haessig@dianosis.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.