From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1WrTMC-0005Ct-KR for mharc-grub-devel@gnu.org; Mon, 02 Jun 2014 10:37:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrTM4-0005Cf-Sh for grub-devel@gnu.org; Mon, 02 Jun 2014 10:36:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrTLz-0000KA-2p for grub-devel@gnu.org; Mon, 02 Jun 2014 10:36:52 -0400 Received: from mail-la0-x235.google.com ([2a00:1450:4010:c03::235]:59693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrTLy-0000I1-RE for grub-devel@gnu.org; Mon, 02 Jun 2014 10:36:47 -0400 Received: by mail-la0-f53.google.com with SMTP id ty20so2603453lab.40 for ; Mon, 02 Jun 2014 07:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type; bh=LZ+uUnUqya7JM8Kira5deB1wXv4f2GH4MSZM24yvRUM=; b=U/51/1uSiKIByFRanfRr52NG0XKevdI+EFALIelCzNMJqI4DWacbIIEb+jPw5P3HLQ N5aubtayxhZmW1zfI8kLC0fViwRLpWZzKU0FVusVrREA0CzEXbuV3TOvavhiQ8t9H/88 kcXuPYA9pIs9RcUMetxBVnG+6BUdazRyyKFKnwgiytptZdUHin5a8pq90dk0yCYyfs1p SmVXjT2/EZTtf4JdFhFb8DLMZIkLSzJUW7MrtWiFzxSjp2Z2lH+jN1jCyGl2yjBC2YF8 oGCYd05q6DxgkBQu0TEgcr/vSrMZY/aAnQZoLkQjhVEt9yFZDfF5kdCPZetlwN/6ySul KiXw== X-Received: by 10.152.170.193 with SMTP id ao1mr29221334lac.27.1401719805409; Mon, 02 Jun 2014 07:36:45 -0700 (PDT) Received: from opensuse.site (ppp37-190-15-130.pppoe.spdop.ru. [37.190.15.130]) by mx.google.com with ESMTPSA id mv10sm13076552lbb.0.2014.06.02.07.36.44 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Jun 2014 07:36:44 -0700 (PDT) Date: Mon, 2 Jun 2014 18:36:43 +0400 From: Andrey Borzenkov To: The development of GNU GRUB Subject: Re: [PATCH] Allow user-defined functions to override builtins. Message-ID: <20140602183643.63c3891e@opensuse.site> In-Reply-To: <20140527012747.1ee715ab@crass-Ideapad-Z570> References: <20140519013715.1e36d215@crass-Ideapad-Z570> <537DA7CC.8000507@gmail.com> <20140524024734.1c602c5b@crass-Ideapad-Z570> <53815D83.8080703@gmail.com> <20140527012747.1ee715ab@crass-Ideapad-Z570> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/yAyoKV6fZ83jhhbS10iE=7w"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::235 Cc: Vladimir =?UTF-8?B?J8+GLWNvZGVyL3BoY29k?= =?UTF-8?B?ZXIn?= Serbinenko , development@efficientek.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2014 14:36:59 -0000 --Sig_/yAyoKV6fZ83jhhbS10iE=7w Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Tue, 27 May 2014 01:27:47 -0500 Glenn Washburn =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On Sun, 25 May 2014 05:03:31 +0200 > Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: >=20 > > 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. > >=20 > > 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. >=20 > 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. >=20 > 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? >=20 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. >=20 > 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. --Sig_/yAyoKV6fZ83jhhbS10iE=7w Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlOMi/sACgkQR6LMutpd94xDqQCgyI5c/hCv2iHlrBCPLk+/bgRM de8AoKeOktWNFgnqrX85e6PwW9OWD32r =N7f5 -----END PGP SIGNATURE----- --Sig_/yAyoKV6fZ83jhhbS10iE=7w--