All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Move loader.c out of the kernel
Date: Wed, 1 Apr 2009 16:19:32 +0200	[thread overview]
Message-ID: <20090401141932.GA28777@thorin> (raw)
In-Reply-To: <200904012252.26655.okuji@enbug.org>

On Wed, Apr 01, 2009 at 10:52:26PM +0900, Yoshinori K. Okuji wrote:
> On Tuesday 31 March 2009 17:56:24 phcoder wrote:
> > With a new swing in normal.mod splitting I think we should reconsider
> > this patch. It's useless to keep loader.c in kernel without boot
> > command. IMO it should be moved either to a perate boot.mod (my
> > preference) or to minicmd.mod (not a good option IMO)
> 
> As I said, rescue mode is not quite useful without any loader. So the loader 
> interface should be built into the kernel, and the boot command should be as 
> well naturally.

This presses for more space into core.img, which is highly constrained
(specially in weird combinations like raid + lvm or crypto in the future).

Why is a loader so important for rescue mode?  If the loader would work, it
means you can read files, so it should be able to load the rest of modules
as well.

When user is dumped to rescue mode, usually (at least for reports I dealt with
in debian) it means GRUB has a bug or didn't setup itself properly, and the
/boot/ directory can't be accessed.  A loader wouldn't help in these
situations.

Also, how do you determine which loaders belong in kernel?  There can be
many specialized loaders like the linux one.  Or we could just put multiboot,
but the Multiboot loader is quite complex already, and it still has room
for growing.  Maybe the answer is to write a very simple Multiboot loader
and put that in kernel?

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



  reply	other threads:[~2009-04-01 14:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-22 12:48 Move loader.c out of the kernel phcoder
2009-03-22 12:57 ` Yoshinori K. Okuji
2009-03-22 13:06   ` phcoder
2009-03-22 13:12     ` Yoshinori K. Okuji
2009-03-22 13:30       ` phcoder
2009-03-22 14:01         ` Yoshinori K. Okuji
2009-03-22 14:19           ` phcoder
2009-03-22 14:59             ` Yoshinori K. Okuji
2009-03-22 14:54           ` Robert Millan
2009-03-31  8:56 ` phcoder
2009-04-01 13:52   ` Yoshinori K. Okuji
2009-04-01 14:19     ` Robert Millan [this message]
2009-04-01 14:42       ` Yoshinori K. Okuji
2009-04-01 15:12         ` phcoder
2009-04-01 15:21           ` Vesa Jääskeläinen
2009-04-01 15:46             ` phcoder
2009-04-05 15:19               ` phcoder
2009-04-15 12:46                 ` phcoder

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=20090401141932.GA28777@thorin \
    --to=rmh@aybabtu.com \
    --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.