All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Two SoC ideas
Date: Sat, 24 Mar 2007 23:57:44 +0100	[thread overview]
Message-ID: <200703242357.44745.okuji@enbug.org> (raw)
In-Reply-To: <e12e59640703230846o3a948dcdk2b6f9bbdd4a9d82a@mail.gmail.com>

On Friday 23 March 2007 16:46, Wei Shen wrote:
> 1) Simple file editing
>
> I think it is useful to add file edit function to Grub. Thus, if a config
> file which is required to boot the OS successfully is mistakenly written,
> we can still correct it in Grub and need not to reboot from the floppy or
> cdrom just for the correcting.
> I know it would greately increase the complexity of Grub to support a
> writable file system. However, if file writing does not change the block
> number of a file, things are much simpler. Since most config files are
> small (occupying only one block), I think the solution will work.

If you don't change the file size, it would work mostly. And this is exactly 
how "savedefault" works in GRUB Legacy.

But I am a bit pessimistic with this approach. For example, ZFS computes a 
checksum for every block, and embeds the information into a parent node. This 
means that, when GRUB modifies any bit of data, GRUB must recompute a 
checksum and write it to somewhere appropriate. Otherwise, a filesystem would 
be corrupted.

Theoretically speaking, nothing prevents GRUB from doing that. But this 
illustrates that GRUB must deal with writing very carefully, and the 
semantics depends on each filesystem. I do not know if a kind of volume 
manager, such as LVM, performs this kind of check, but if it does, we need to 
support it as well.

So this work is not as trivial as at the first glance, although we need it for 
"savedefault" definitely.

> 2) *addr* option for module command
>
> Add nn option: "*addr* = *value*" to the module command. If the
> *addr*option is specified, Grub will load the module to address
> *value* instead of the default address.

We discussed this in bug-grub a long time ago. If you are interested, please 
look at the archive, and search by "modaddr".

In summary, I do not like this, because it is a non-standard extension to 
Multiboot Specification. If you depend on this feature, your users would be 
restricted to using GRUB, and they would not be able to use any other 
Multiboot-compliant boot loaders. This is against the spirit of the Multiboot 
Specification, which addresses portability problems in boot protocols.

So this must be accomplished as a part of Multiboot Specification. Otherwise, 
I do not want to accept it.

Thanks,
Okuji



  parent reply	other threads:[~2007-03-24 23:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <e12e59640703230823l6719006blafc599e017b367e3@mail.gmail.com>
2007-03-23 15:46 ` Two SoC ideas Wei Shen
2007-03-23 16:22   ` colyli
2007-03-23 17:30     ` Wei Shen
2007-03-23 17:49       ` coly
2007-03-24 16:12   ` Hollis Blanchard
2007-03-26  5:24     ` LVM as root device Juan Pedro Paredes
2007-03-28 18:53       ` Yoshinori K. Okuji
2007-04-10 23:32       ` Jerone Young
2007-03-24 22:57   ` Yoshinori K. Okuji [this message]
2007-03-25  5:35     ` Two SoC ideas coly
2007-03-28 18:47       ` Yoshinori K. Okuji
2007-03-25 20:29     ` James Youngman
2007-03-28  2:24 ` Wei Shen
2007-03-28  4:57   ` coly 
2007-03-28 11:06     ` Wei Shen
2007-03-28 19:08       ` Yoshinori K. Okuji
2007-03-29  3:17         ` Wei Shen
2007-04-07 13:07           ` Yoshinori K. Okuji
2007-04-10 13:41           ` Marco Gerards

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=200703242357.44745.okuji@enbug.org \
    --to=okuji@enbug.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.