All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Automagic command loading
Date: Thu, 30 Sep 2004 15:05:10 +0000	[thread overview]
Message-ID: <871xgjg5ll.fsf@marco.marco-g.com> (raw)
In-Reply-To: <200409301533.28151.okuji@enbug.org> (Yoshinori K. Okuji's message of "Thu, 30 Sep 2004 15:33:28 +0200")

"Yoshinori K. Okuji" <okuji@enbug.org> writes:

> On Wednesday 29 September 2004 23:38, Tomas Ebenlendr wrote:
>> Disadvantage: current solution slowly reads the contens of directory.
>> This is probably caused by opening files by /full/ path, where we
>> principially have opened directory (and resolved path to it.).
>
> I think this is a critical problem. For example, if the user has a 
> broken module which may crash GRUB, the user can easily break GRUB by 
> trying a non-existent command.

As far as I understood what Tomas said, the modules are loaded and
only the new section is checked.  So it will not be initialized.

> Also, if my understanding is correct, the list of modules is stored in a 
> binary form. This means that the user cannot (easily) modify the list 
> after building GRUB.

Every module contains the list of commands it exports, AFAIK.  So the
is no single big central list.

> The advantage of autocmd.lst is that it makes customization much easier. 
> Suppose that the user wants to add a new command and build his own 
> module. Then, how to autoload this command?

The new module will contain this specific section as well.

--
Marco




  reply	other threads:[~2004-09-30 15:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-28 19:05 Automagic command loading Tomas Ebenlendr
2004-09-29 12:16 ` Marco Gerards
2004-09-29 22:14   ` Tomas Ebenlendr
2004-09-29 15:02 ` Yoshinori K. Okuji
2004-09-29 21:38   ` Tomas Ebenlendr
2004-09-29 22:00     ` Marco Gerards
2004-09-29 22:23       ` Tomas Ebenlendr
2004-09-30 13:33     ` Yoshinori K. Okuji
2004-09-30 15:05       ` Marco Gerards [this message]
2004-09-30 17:44         ` Tomas Ebenlendr
2004-10-01 15:09         ` Yoshinori K. Okuji
2004-10-01 15:36           ` chaac
2004-10-01 21:56           ` Tomas Ebenlendr
2004-10-06  8:43             ` Yoshinori K. Okuji

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=871xgjg5ll.fsf@marco.marco-g.com \
    --to=metgerards@student.han.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.