From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Command extension suggestions
Date: Thu, 14 Jun 2007 13:50:38 +0200 [thread overview]
Message-ID: <87odjivjox.fsf@xs4all.nl> (raw)
In-Reply-To: <20070614113154.GA686@ws3.vdp.com> (bean123@126.com's message of "Thu, 14 Jun 2007 19:31:54 +0800")
Bean <bean123@126.com> writes:
> On Thu, Jun 14, 2007 at 12:49:26PM +0200, Marco Gerards wrote:
>> Well, I see the problem but I do not agree with the solution.
>>
>> The problem for GRUB 2 is that initrd is very linux specific. It's
>> part of a loader. Perhaps we either have to extend loopback to load a
>> file into memory on beforehand. Or add a memdisk disk or so.
>>
>> One problem with initrd is that it is very architecture specific.
>> Another problem is that the initrd is unloaded when you load another
>> kernel or OS. Besides that, reusing initrd appears hackish to me :-).
>
> I have another idea on this subject. First, We can extend the function of
> grub-mkimage so that it can handle data files. The data files embed in
> core.img can be accessed using a special device such as (ed). Then, we can
> put all necessary files, such as modules, grub.cfg and other data files in
> a single core.img. This kernel is self-sustaining, no extra file is needed
> for it to function properly.
This sounds good. In what way do you want to embed them? A
filesystem image (for example minixfs)? Some simple archive?
You don't have to put modules in there, they can be made part of
core.img.
> Even if we don't create mono kernel, embeded data files can be usefully. For
> example, moddep.lst, fs.lst and command.lst, these files are best placed in
> core.img. Also, we can check the presence of embeded grub.cfg before loading
> external one, this is similar to the preset menu concept in GRUB Legacy.
The problem with a too big core.img is that it won't fit in the first
cylinder. So we need to think carefully about what should go in there
and what shouldn't.
But making it possible to pack everything so it can be booted using
PXE or so sounds good. There was a feature for GRUB Legacy to add a
menu.lst at compile-time. But having something more generic and not
requiring a recompile is way better.
--
Marco
next prev parent reply other threads:[~2007-06-14 11:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-14 3:46 Command extension suggestions Bean
2007-06-14 6:08 ` Robert Millan
2007-06-14 6:24 ` Bean
2007-06-14 9:42 ` Marco Gerards
2007-06-14 10:24 ` Bean
2007-06-14 10:49 ` Marco Gerards
2007-06-14 11:31 ` Bean
2007-06-14 11:50 ` Marco Gerards [this message]
2007-06-14 13:08 ` Bean
2007-06-14 13:48 ` 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=87odjivjox.fsf@xs4all.nl \
--to=mgerards@xs4all.nl \
--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.