All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Cc: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>,
	development@efficientek.com
Subject: Re: [PATCH] Allow user-defined functions to override builtins.
Date: Mon, 2 Jun 2014 18:36:43 +0400	[thread overview]
Message-ID: <20140602183643.63c3891e@opensuse.site> (raw)
In-Reply-To: <20140527012747.1ee715ab@crass-Ideapad-Z570>

[-- Attachment #1: Type: text/plain, Size: 1978 bytes --]

В Tue, 27 May 2014 01:27:47 -0500
Glenn Washburn <development@efficientek.com> пишет:

> On Sun, 25 May 2014 05:03:31 +0200
> Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> wrote:
> 
> > On 24.05.2014 09:47, Glenn Washburn wrote:
> > > But the prefix variable is used for other things in the loaded
> > > config file.  So if I change the prefix to be that of the running
> > > grub to load the correct modules, other parts of the config will
> > > break (for instance, loading fonts or locales).
> > Localesneed to come from folder matching running GRUB, otherwise
> > you'll get string mismatches. Fonts typically come from themes or is
> > unifont.
> > 
> > Additionally your approach doesn't solve the problem in the first
> > place. insmod is just one of possible ways to load modules. For
> > various autoloads there is no command to hook.
> 
> I'm not sure of a good solution to the locale problem, but I don't
> think I've run in to it (I use english, which I don't think needs
> them).  So ignore my comment about locales.
> 
> As far as module auto-loading, please correct me if I'm wrong, but I
> think auto-loading mostly happens when resolving dependencies when
> loading another module.  I have seen, for instance, the "help loadfont"
> command auto-load the font modules, but in what other situations does
> modules auto-loading occur?
> 

Every time you use any command that is defined in a module. Or use
hashing/encryption algorithm. Or ... actually most of grub is
auto-loaded on demand.

> In my case, I think things generally work because auto-loading is
> happening as a reaction to an explicit load from insmod.  In this
> context things will work as desired because the changed prefix set in
> the insmod hook will be used.
> 
> Michel also had a good use for it, which is to provide cheap builtin
> trace/logging.  I expect as grub gets more powerful more uses not
> thought of will crop up.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2014-06-02 14:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19  6:37 [PATCH] Allow user-defined functions to override builtins Glenn Washburn
2014-05-19  9:38 ` Michel Hermier
2014-05-19 15:26   ` Ben Hildred
2014-05-22  7:31 ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-05-24  7:47   ` Glenn Washburn
2014-05-25  3:03     ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-05-27  6:27       ` Glenn Washburn
2014-06-02 14:36         ` Andrey Borzenkov [this message]
2014-05-25  9:08   ` Michel Hermier

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=20140602183643.63c3891e@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=development@efficientek.com \
    --cc=grub-devel@gnu.org \
    --cc=phcoder@gmail.com \
    /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.